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 2016 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:


    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
    Dimiter Madjarov avatar
    2312 posts

    Posted 30 Jun 2016 Link to this post

    Hello Fillip,

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

    Dimiter Madjarov
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top