(function () {
    'use-strict';

    var defaults = {
        templateUrl: 'ng-iframeUpload.html'
    };
    var iframeUpload = function ($templateCache) {
        $templateCache.put(defaults.template_url,
            '<iframe width="0" height="0" id="{{iframeName}}" name="{{iframeName}}"></iframe>' +
            '<form style="display: none" action="{{url}}" method="post" enctype="multipart/form-data" target="{{iframeName}}">' +
            '<input type="hidden" ng-repeat="item in hiddens" name="{{item.key}}" value="{{item.value}}" /></form>');
        return {
            restrict: 'EA',
            scope: {
                images: '=',
                thumbsNum: '@'
            },
            controller: [
                '$scope',
                function ($scope) {
                    $scope.$on('ng-change', function (e, args) {
                        $scope.openGallery(args.index);
                    });
                }
            ],
            templateUrl: function (element, attrs) {
                return attrs.templateUrl || defaults.templateUrl;
            }
        }
    };
    angular.module('iframeUpload', []).directive('iframeUpload', iframeUpload);
    iframeUpload.$inject = ['$templateCache'];
})();
@@ -631,18 +631,18 @@
     
-ima
+chan
 ge
-s
 : '
-=
+&
 ',%0A 
@@ -660,17 +660,11 @@
     
-thumbsNum
+url
 : '@
@@ -732,16 +732,16 @@
 scope',%0A
+
         
@@ -772,153 +772,8 @@
 ) %7B%0A
-                    $scope.$on('ng-change', function (e, args) %7B%0A                        $scope.openGallery(args.index);%0A                    %7D);%0A
     
@@ -1083,8 +1083,9 @@
 %5D;%0A%7D)();
+%0A

Update ngiframeUpload.js