19 lines
548 B
JavaScript
19 lines
548 B
JavaScript
|
angular.
|
||
|
module('catalog').
|
||
|
config(['$locationProvider', '$routeProvider',
|
||
|
function config($locationProvider, $routeProvider) {
|
||
|
$locationProvider.hashPrefix('!');
|
||
|
|
||
|
$routeProvider.
|
||
|
when('/catalog', {
|
||
|
template: '<an-list></an-list>'
|
||
|
}).
|
||
|
when('/catalog/:itemId', {
|
||
|
template: '<an-detail></an-detail>'
|
||
|
}).
|
||
|
when('/info', {template: '<an-info></an-info>'}).
|
||
|
when('/contact', {template: '<an-contact></an-contact>'}).
|
||
|
when('/',{ template: '<an-home></an-home>' });
|
||
|
}
|
||
|
]);
|