Use the $compile service to tell angular to recompile part of the DOM. http://docs.angularjs.org/api/ng.$compile
On Mon, Jan 27, 2014 at 5:25 PM, Glen Maddern <[email protected]> wrote: > Here's a contrived example: > > http://plnkr.co/edit/TmFuVYDjAWxq9YKGpCCf?p=preview > > A directive called ng-attach-click runs and sets an ng-click attribute on > a particular element. How do I tell Angular that this element has now > changed and needs to be recompiled? > > Alternatively, if I could inject the ng-click code, I could theoretically > call its linking function, passing in scope, element, attrs? > > The reason I actually want this is I have an SVG file that Adobe > Illustrator outputs, and I want to add ng-click directives to a few parts > of it. > > Thoughts? > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
