Avalaible images can be display

This commit is contained in:
manzerbredes 2016-03-06 15:04:47 +01:00
parent 96094547dd
commit b0b2dc9a64
3 changed files with 39 additions and 8 deletions

View file

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