Hi, I want to put all my kendo templates in small html files and load them dynamically inside an angular controller. This is possible? I want to avoid to put the kendo templates in my main html file.
Thanks in advance.
3 Answers, 1 is accepted
0
Sebastian
Telerik team
answered on 22 Aug 2014, 07:51 AM
Hello Andres,
I think that the guidelines from the following help article will help you with the loading templates from external files implementation. Review the information from this topic for more details.
Regards,
Sebastian
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Yes, I know that post .. but I'm looking for something integrated with angular ....
0
Alex Gyoshev
Telerik team
answered on 26 Aug 2014, 08:45 AM
Hello Andres,
At this time, the TreeView needs to be initialized when its template is available. Thus, you'll need to create the TreeView dynamically when the template is loaded, but that would introduce quite a bit of complex code that is not worth it. That said, the following fiddle shows how to compile HTML dynamically and insert it in your app -- you can do this in a ng-include onload handler, if you wish.
Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!