[AngularJS] Re: Should one be able to dynamically add an attribute directive in a directive's compile function?

2014-08-20 Thread Michael Krzenski
That's exactly what I needed to know! Thanks so much taking the time to layout a code example and even explain it. Very much appreciated! Mike On Wednesday, August 20, 2014 1:07:04 AM UTC-4, Sander Elias wrote: Hi Michael, yes, you can do that, but if you need the stuff you add/manipulate

[AngularJS] Re: Should one be able to dynamically add an attribute directive in a directive's compile function?

2014-08-20 Thread Sander Elias
Hi Michael, You're welcome. Glad to be of assistance! Regards Sander -- 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 angular+unsubscr...@googlegroups.com. To post

[AngularJS] Re: Should one be able to dynamically add an attribute directive in a directive's compile function?

2014-08-19 Thread Sander Elias
Hi Michael, yes, you can do that, but if you need the stuff you add/manipulate to be compiled too. (say you add an another angular directive…) you need to recompile the element. or at least the parts you modified. here is an example of that: .directive('testModel', function($compile) {