angularjs - ngRepeat and directives execution order -
when angular directive contains ngrepeat element, ngrepeat execution appears to occur after containing directive's link execution.
is there mechanism ($watch, $observe, etc) can use wire response after ngrepeat execution?
here's example of behavior: http://plnkr.co/edit/ybisvveesissu7rik6kp?p=preview
i want operate in state in directive inputs available.
my primary goal alter elements of ngrepeat containing directive.
the typical way determine when ng-repeat has finished write directive checks see if $last
true. can call function (defined on parent/ancestor scope) or emit event, inside $timeout
callback or $evalasync
.
for more details , examples, see calling function when ng-repeat has finished
Comments
Post a Comment