dimanche 8 février 2015

Angular Error: [$rootScope:inprog] $apply already in progress on document.click()

I often recive the " $apply already in progress" Error at this peace of code:



public addFile(): void {
if (window["File"]) {
$("#fileSelector").click();
}
}


the addFile function is called by ng-click, has someone an idea how to avoid it?





Aucun commentaire:

Enregistrer un commentaire