{"action":"created","issue":{"url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended/issues/99","repository_url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended","labels_url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended/issues/99/comments","events_url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended/issues/99/events","html_url":"https://github.com/CrackerakiUA/ngImgCropFullExtended/issues/99","id":146849204,"number":99,"title":"White screen when I was trying to upload an image. Why do I get it? Here is my code.","user":{"login":"zidein07","id":7279177,"avatar_url":"https://avatars.githubusercontent.com/u/7279177?v=3","gravatar_id":"","url":"https://api.github.com/users/zidein07","html_url":"https://github.com/zidein07","followers_url":"https://api.github.com/users/zidein07/followers","following_url":"https://api.github.com/users/zidein07/following{/other_user}","gists_url":"https://api.github.com/users/zidein07/gists{/gist_id}","starred_url":"https://api.github.com/users/zidein07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zidein07/subscriptions","organizations_url":"https://api.github.com/users/zidein07/orgs","repos_url":"https://api.github.com/users/zidein07/repos","events_url":"https://api.github.com/users/zidein07/events{/privacy}","received_events_url":"https://api.github.com/users/zidein07/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T08:01:29Z","updated_at":"2016-04-10T14:06:07Z","closed_at":"2016-04-10T14:06:06Z","body":"I'm using ng-file-upload for upload image, and getting white screen. \r\nJS\r\n```js\r\nangular.module('someApp', [\r\n  'ngFileUpload',\r\n  'ngImgCrop'\r\n]);\r\n```\r\n```html\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"ng-img-crop.css\">\r\n<script src=\"angular.min.js\"></script>\r\n<script src=\"ng-img-crop.js\"></script>\r\n\r\n<div ng-if=\"fileUpload\" class=\"diary\">\r\n        <div class=\"diary-crop-image\" style=\"height: {{ dataImageForCrop.height + 'px' }};\">\r\n            <img-crop image=\"fileUpload | ngfDataUrl\" area-type=\"rectangle\" result-image=\"diaryParams.thumb\"></img-crop>\r\n        </div>\r\n    </div>\r\n<div ng-show=\"!fileUpload && !diaryData.thumb\">\r\n        <div type=\"file\" ng-model=\"fileUpload\" ngf-drop=\"uploadFiles($file, $invalidFiles)\"\r\n             ngf-select=\"uploadFiles($file, $invalidFiles)\"\r\n             ngf-validate=\"fileValidateProps\"\r\n             class=\"diary-upload bordered\">\r\n            <div class=\"upload-picture\">\r\n                <div class=\"upload-button\"></div>\r\n                <p class=\"text-center\">\r\n                    Чтобы загрузить, нажмите на иконку картинки<br>\r\n                    или перетащите файл в это окно\r\n                </p>\r\n            </div>\r\n        </div>\r\n    </div>\r\n```\r\n\r\nI'm just trying to upload an image, I can see it, but later it disappears. What is the problem?\r\n\r\nvideo with problem: https://youtu.be/L2oKqh03bGM\r\n"},"comment":{"url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended/issues/comments/207991337","html_url":"https://github.com/CrackerakiUA/ngImgCropFullExtended/issues/99#issuecomment-207991337","issue_url":"https://api.github.com/repos/CrackerakiUA/ngImgCropFullExtended/issues/99","id":207991337,"user":{"login":"zidein07","id":7279177,"avatar_url":"https://avatars.githubusercontent.com/u/7279177?v=3","gravatar_id":"","url":"https://api.github.com/users/zidein07","html_url":"https://github.com/zidein07","followers_url":"https://api.github.com/users/zidein07/followers","following_url":"https://api.github.com/users/zidein07/following{/other_user}","gists_url":"https://api.github.com/users/zidein07/gists{/gist_id}","starred_url":"https://api.github.com/users/zidein07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zidein07/subscriptions","organizations_url":"https://api.github.com/users/zidein07/orgs","repos_url":"https://api.github.com/users/zidein07/repos","events_url":"https://api.github.com/users/zidein07/events{/privacy}","received_events_url":"https://api.github.com/users/zidein07/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T14:06:06Z","updated_at":"2016-04-10T14:06:06Z","body":"I've already found a solution to my problem. The problem was in angular, I don't know why but using ng-if causes such a flicker. Native library doesn't have it. We need to check it. So thank you, the issue can be closed"}}