Add functionnality

This commit is contained in:
Loic GUEGAN 2016-04-17 20:43:41 +02:00
parent a481b727d9
commit ae4e028231
5 changed files with 41 additions and 46 deletions

View file

@ -0,0 +1,13 @@
/**
* The image controller
*
* @param {$scope} $scope The $scope service from angular
*/
mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', 'upload', function ($scope, Image, Loading, Identity, upload)
{
$scope.$on('editImageEvent', function (eventName, image) {
$scope.image = image;
$('#editImageModal').modal('show');
console.log(image)
});
}]);