$evalAsync
( type in module ng
)
Executes the expression on the current scope at a later point in time.
The $evalAsync makes no guarantees as to when the expression will be executed, only that:
$digest cycle will be performed after
expression execution.Any exceptions from the execution of the expression are forwarded to the
$exceptionHandler service.
Scope#$evalAsync([expression]);
expression(optional) – {(string|function())=} –
An angular expression to be executed.
string : execute using the rules as defined in expression.function(scope) : execute the function with the current scope parameter.