anorgatarrak-frontend/app/catalog/catalog.config.js

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>' });
}
]);