Any issues creating template html in JS files?

2 posts, 0 answers
  1. Fillip
    Fillip avatar
    10 posts
    Member since:
    Nov 2013

    Posted 28 Jun Link to this post

    Most of the kendo examples use a script tag template for the HTML of a widget (modal, etc).I was doing some experimentation to see if I could define the template html in my JS files. Turns out that works just fine, JS/logic expressions and all:  http://dojo.telerik.com/izEJa

     

    I was wondering if anyone knows of any negatives of doing this? I am considering creating template html in my JS to make the templates more portable and to declutter my views more.

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 30 Jun Link to this post

    Hello Fillip,

    There should not be issues when using the approach in the linked example.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
Back to Top