{"action":"created","issue":{"url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/46","repository_url":"https://api.github.com/repos/alexk111/ngImgCrop","labels_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/46/comments","events_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/46/events","html_url":"https://github.com/alexk111/ngImgCrop/issues/46","id":54836316,"number":46,"title":"Can this work with angular 1.3?","user":{"login":"faidoc","id":331390,"avatar_url":"https://avatars.githubusercontent.com/u/331390?v=3","gravatar_id":"","url":"https://api.github.com/users/faidoc","html_url":"https://github.com/faidoc","followers_url":"https://api.github.com/users/faidoc/followers","following_url":"https://api.github.com/users/faidoc/following{/other_user}","gists_url":"https://api.github.com/users/faidoc/gists{/gist_id}","starred_url":"https://api.github.com/users/faidoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faidoc/subscriptions","organizations_url":"https://api.github.com/users/faidoc/orgs","repos_url":"https://api.github.com/users/faidoc/repos","events_url":"https://api.github.com/users/faidoc/events{/privacy}","received_events_url":"https://api.github.com/users/faidoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-20T02:27:15Z","updated_at":"2016-03-22T15:32:10Z","closed_at":null,"body":"I'm trying to include this module in an Angular 1.3 app but I get evt.target.result as undefined\r\n\r\nIn my html I have:\r\n\r\n```html\r\n<div class=\"text-center form-group\">\r\n\t<span class=\"btn btn-default btn-file\">\r\n    \t\tSelect Image <input type=\"file\" id=\"fileInput\">\r\n\t</span>\r\n\t</div>\r\n\t<div class=\"text-center form-group\">\r\n\t\t<img-crop image=\"myImage\" result-image=\"croppedImage\" area-type=\"square\" result-image-size=\"250\"></img-crop>\r\n\t</div>\r\n\t<div><img ng-src=\"{{croppedImage}}\" /></div>\r\n</div>\r\n```\r\n\r\nAnd in my controller I have:\r\n```javascript\r\n        $scope.myImage='';\r\n        $scope.croppedImage='';\r\n                                                                      \r\n         var handleFileSelect=function(evt) {\r\n            var file=evt.currentTarget.files[0];\r\n            var reader = new FileReader();\r\n            reader.onload = function (evt) {\r\n                $scope.$apply(function($scope){\r\n                    $scope.myImage=evt.target.result;\r\n                });\r\n            };\r\n            reader.readAsDataURL(file);\r\n        };\r\n        angular.element(document.querySelector('#fileInput')).on('change',handleFileSelect); ```\r\n"},"comment":{"url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/comments/199867995","html_url":"https://github.com/alexk111/ngImgCrop/issues/46#issuecomment-199867995","issue_url":"https://api.github.com/repos/alexk111/ngImgCrop/issues/46","id":199867995,"user":{"login":"kukac7","id":1240104,"avatar_url":"https://avatars.githubusercontent.com/u/1240104?v=3","gravatar_id":"","url":"https://api.github.com/users/kukac7","html_url":"https://github.com/kukac7","followers_url":"https://api.github.com/users/kukac7/followers","following_url":"https://api.github.com/users/kukac7/following{/other_user}","gists_url":"https://api.github.com/users/kukac7/gists{/gist_id}","starred_url":"https://api.github.com/users/kukac7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukac7/subscriptions","organizations_url":"https://api.github.com/users/kukac7/orgs","repos_url":"https://api.github.com/users/kukac7/repos","events_url":"https://api.github.com/users/kukac7/events{/privacy}","received_events_url":"https://api.github.com/users/kukac7/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T15:32:10Z","updated_at":"2016-03-22T15:32:10Z","body":"@yrfandre `bower.json`\r\n```\r\n\"overrides\": {\r\n\"ng-img-crop\": {\r\n        \"dependencies\": {\r\n            \"angular\": \"*\"\r\n        }\r\n    }\r\n}\r\n```"}}