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