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
Post a Comment