123456789101112131415161718192021222324 |
- angular.module("noteWrangler")
- .config(function ($routeProvider, $locationProvider) {
- $locationProvider.hashPrefix('');
- $routeProvider
- .when("/notes/:id", {
- templateUrl: "templates/pages/notes/show.html",
- controller: 'NotesShowController',
- controllerAs: 'showController'
- })
- .when("/notes", {
- templateUrl: "templates/pages/notes/index.html",
- controller: 'NotesIndexController',
- controllerAs: 'indexController'
- })
- .when("/users", {
- templateUrl: "templates/pages/users/index.html"
- })
- .when("/", {
- templateUrl: "templates/pages/notes/index.html"
- })
- .otherwise({
- redirectTo: "/"
- });
- });
|