i399exng1/app/routes.js

21 lines
474 B
JavaScript
Raw Normal View History

2017-03-13 12:29:29 +02:00
(function () {
'use strict';
angular.module('app').config(RouteConfig);
function RouteConfig($routeProvider) {
$routeProvider.when('/list', {
templateUrl : 'app/list.html',
controller : 'ListCtrl',
controllerAs : 'vm'
}).when('/details/:id', {
templateUrl : 'app/details.html',
controller : 'DetailsCtrl',
controllerAs : 'vm'
}).otherwise('/list');
}
2017-04-20 09:49:26 +03:00
})();