Hi!
I am building a hidden list in a directive like that (simplified, tried to
do it with transclude, but the transcluded stuff never works for me *lol*,
so everything in the directive now):
<ul ng-repeat="elem in whatever">
<li>{{elem.something}}</li>
when the whole list has been rendered into the DOM I need to call a
JavaScript function (3rd party). How can I get this DOM rendered event?
Inside the link function I can watch the scope, but when the scope for the
ng-repeat is changing the DOM has not even started to be rendered. So what
I would need is something like (pseudo-code):
/* called when the whole rendering stuff is finished (including the
ng-repeat has created the li items) */
whenRendered: function() {
ExternalSericeCall();
}
in the directive declaration.
Thank you very much in advance!
Kind regards,
Anton
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.