2016-04-17 20:43:41 +02:00
|
|
|
/**
|
|
|
|
* 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)
|
|
|
|
{
|
2016-04-18 13:16:50 +02:00
|
|
|
$scope.$on('editImageEvent', function (eventName, image,axioms) {
|
2016-04-17 20:43:41 +02:00
|
|
|
$scope.image = image;
|
2016-04-18 13:16:50 +02:00
|
|
|
$scope.axioms=axioms;
|
2016-04-17 20:43:41 +02:00
|
|
|
$('#editImageModal').modal('show');
|
|
|
|
console.log(image)
|
|
|
|
});
|
|
|
|
}]);
|