<div ng-show="vm.loaderVisible">
<div class="loader-icon"></div>
</div>
I have this HTML.
In controller, I'm creating IFrame element and then submitting it. I have iFrame on load callback, where I want to hide my loader.
IFrame.onload = () => {
this.loaderVisible = false;
};
Problem is that if I write this.loaderVisible = false;
outside callback, it works, if inside doesn't
Why?