| author | cavaliet |
| Fri, 03 Oct 2014 12:41:56 +0200 | |
| changeset 3 | 18a4c598ddee |
| parent 1 | 74bbdd739878 |
| child 5 | c6ff29914983 |
| permissions | -rw-r--r-- |
| 0 | 1 |
(function(){ |
2 |
'use strict'; |
|
3 |
||
4 |
angular.module('ammicoGallery',['ngResource', 'ngRoute']) |
|
5 |
.config(function ($routeProvider) { |
|
6 |
$routeProvider |
|
7 |
.when('/', { |
|
8 |
templateUrl: 'gallery/gallery.html', |
|
9 |
controller: 'galleryCtrl' |
|
10 |
}); |
|
11 |
}) |
|
| 3 | 12 |
.controller('galleryCtrl', function($scope, $location, slideshowModel){ |
13 |
console.log('gallery 5',$scope, $location, slideshowModel); |
|
14 |
$scope.gallery = slideshowModel.slideshow; |
|
| 0 | 15 |
}); |
16 |
||
17 |
})(); |