Add functionnality
This commit is contained in:
parent
a481b727d9
commit
ae4e028231
5 changed files with 41 additions and 46 deletions
13
client/js/controllers/image/edit.js
Normal file
13
client/js/controllers/image/edit.js
Normal 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)
|
||||
});
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue