Hi,
you can simply compile whatever you want when processing directives. I won't give you specific example as I am writing from my mobile, but take a look at $compile service.
Let us know if you have hard time figuring it out.
Regards,
Witold Szczerba
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en.
--
Thanks in advance
Hi,
Check the thread about layouts. I have provided an example of such a directive today.
Regards,
Witold Szczerba
---
Sent from my mobile phone.
Hi, i am looking to do something similar to this. In my directive i want to pass the path of a templeteUrl from a json file. Can you tell me how i could accomplish this? I am a newbie to angularjs
Thanks in advance
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
I mean kind of such a directive, not exactly like this, but it also replaces the template url based on a variable property (by encapsulating ng-include).
You can also use plain ng-include and set the property in controller.
Regards,
Witold Szczerba
---
Sent from my mobile phone.