Skip to content

Commit

Permalink
Merge pull request #3 from miguelius/master
Browse files Browse the repository at this point in the history
updates options dinamically
  • Loading branch information
igorlino committed Jan 23, 2016
2 parents e6cd2ee + 89d9c17 commit 1e196ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/angular-ezplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
plugin.changeState('enable');
}
});
//updates options dinamically
$scope.$watch('ezpOptions', function (newValue, oldValue) {
angular.extend(options, $scope.ezpOptions);
});
$scope.$watch('ezpModel', function (newValue, oldValue) {
var image = newValue;
var thumbUrl = (image && image.thumb) || '';
Expand Down

0 comments on commit 1e196ea

Please sign in to comment.