|
0
|
1 |
(function(){ |
|
|
2 |
'use strict'; |
|
|
3 |
|
|
|
4 |
angular.module('ammico', [ 'ngRoute','ammicoHome', 'ammicoGallery', 'ammicoSlideshow', 'templates' ]) |
|
|
5 |
.config(function($routeProvider) { |
|
|
6 |
$routeProvider. |
|
|
7 |
when('/', { |
|
|
8 |
controller: 'homeCtrl', |
|
|
9 |
templateUrl: 'home/home.html' |
|
|
10 |
}). |
|
|
11 |
when('/gallery', { |
|
|
12 |
controller: 'galleryCtrl', |
|
|
13 |
templateUrl: 'gallery/gallery.html' |
|
|
14 |
}). |
|
|
15 |
when('/slideshow', { |
|
|
16 |
controller: 'slideshowCtrl', |
|
|
17 |
templateUrl: 'slideshow/slideshow.html' |
|
|
18 |
}). |
|
|
19 |
otherwise({ |
|
|
20 |
redirectTo: '/gallery' |
|
|
21 |
}); |
|
|
22 |
}) |
|
|
23 |
// .config(function ($routeProvider) { |
|
|
24 |
// $routeProvider |
|
|
25 |
// .otherwise({ |
|
|
26 |
// redirectTo: '/' |
|
|
27 |
// }); |
|
|
28 |
// }); |
|
|
29 |
.config(function($logProvider){ |
|
|
30 |
$logProvider.debugEnabled(true); |
|
|
31 |
}); |
|
|
32 |
|
|
|
33 |
})(); |