Hi,
When working with Kendo SPA, what are the reasons(if any) for views in app to always include HTML content for them as part of Kendo templates?
- Following sample below:
When working with Kendo SPA, what are the reasons(if any) for views in app to always include HTML content for them as part of Kendo templates?
- Following sample below:
<script id="index" type="text/x-kendo-template"> <span>Hello World!</span></script>
<script>var index = new kendo.View('index');</script>Is there any implication (maybe at DOM level) making more suitable to always include HTML view content within <script>?
Since it is possible to define views in my Kendo SPA app without making use of Kendo templates as follows...:
<div id="index"><span>Hello World!</span></div> <script>var index = new kendo.View("#index");</script>...I was basically wondering about advantages/disadvantages from using one approach or another.
Thanks,
Walid