У меня возникли проблемы с корректной работой моего $routeProvider.
У меня есть следующий код:
"use strict";
(function() {
angular.module("websiteApp", ["ngRoute"])
.config(["$routeProvider", function($routeProvider){
$routeProvider
.when("/example", {
templateUrl: "partials/example.html",
controller: "ExampleController"
})
.otherwise({
redirectTo: "/"
});
}]);
})();
но когда я перехожу к localhost/example
, я получаю 404 Not Found
. Где я ошибаюсь?
ExampleController
- person rj93   schedule 25.10.2015