diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-09 15:33:52 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-09 15:33:52 +0100 |
| commit | 8ad216dedf017f3d6de047a25d08db3b98e16361 (patch) | |
| tree | fcec94698125460b47a47bd4e4db76428ba04d8b /client/js/controllers/image/image.js | |
| parent | 3b569b6d008d5b1936ee04948cf5c1cc08790f39 (diff) | |
test
Diffstat (limited to 'client/js/controllers/image/image.js')
| -rw-r--r-- | client/js/controllers/image/image.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/js/controllers/image/image.js b/client/js/controllers/image/image.js index e298fcc..d499acb 100644 --- a/client/js/controllers/image/image.js +++ b/client/js/controllers/image/image.js @@ -3,7 +3,7 @@ * * @param {$scope} $scope The $scope service from angular */ -mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', function ($scope, Image, Loading) +mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading',function ($scope, Image, Loading) { var callbackTest=function(){ $scope.images=Image.getData().images; @@ -17,5 +17,9 @@ mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', function ($scope, else{ callbackTest(); } + + $scope.doUpload = function () { + Image.uploadImage($scope.myFile,function(){}); + }; }]); |
