angularjs: event after interpolation/binding happened

199 views Asked by At

Let's say I have an angularjs directive with a template like this:

<span>{{ myLabel }}</span>

Is there an event/service I could tap into to get the resulting interpolated html e.g:

<span>My Label Text</span>

I sure could scrape all html on the page with vanilla js or jquery, outside of angular. But I want it to be contextual to a directive, and I want to do it in a particular moment in time - when the interpolation happens, or a bound variable changes.

Alternative way I could define my task: I want to get all variables (their values) on the scope that are bound to the template (not just all variables on the scope, that's a no-brainer obviously).

0

There are 0 answers