javascript - how to execute angular stuff in resolve of routePrvodier? -


once execute angular stuff trigger ng-click of element use element.click(),it says

"error: [$rootscope:inprog] $digest in progress". 

but if set timeout settimeout function,this error gone.

check out, should solve problem: https://coderwall.com/p/ngisma. saying using element.click() instead of ng-click, why that? ng-click directive meant handling clicks within angular digest cycle, why implement yourself?


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -