summaryrefslogtreecommitdiff
path: root/client/js/controllers/image
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-06 15:04:47 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-06 15:04:47 +0100
commitb0b2dc9a6451fc1a2d41b255600094da1ece6485 (patch)
treec7f889c787dd36dabd6daed8bee9ab6b643978f7 /client/js/controllers/image
parent96094547dd793868092dda4c2699a839287fa175 (diff)
Avalaible images can be display
Diffstat (limited to 'client/js/controllers/image')
-rw-r--r--client/js/controllers/image/image.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/js/controllers/image/image.js b/client/js/controllers/image/image.js
index 036dec3..a8346b3 100644
--- a/client/js/controllers/image/image.js
+++ b/client/js/controllers/image/image.js
@@ -3,7 +3,11 @@
*
* @param {$scope} $scope The $scope service from angular
*/
-mainApp.controller('imageCtrl', function ($scope)
+mainApp.controller('imageCtrl', ['$scope', 'Image', function ($scope, Image)
{
- $scope.title="Test";
-});
+ var callbackTest=function(){
+ $scope.images=Image.getData().images;
+ };
+
+ Image.getImages(callbackTest);
+}]);