This is a migrated thread and some comments may be shown as answers.

Kendo Template with Angular

3 Answers 162 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 21 Aug 2014, 10:23 PM
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

Sort by
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!
 
0
Andres
Top achievements
Rank 1
answered on 22 Aug 2014, 04:31 PM
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!
 
Tags
Integration with other JS libraries
Asked by
Andres
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Andres
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or