Menu

30 April 2014

How I use underscore template in my JavaScript projects

Here are few rules which I keep in mind while creating template
  • always use separate .html for a template
  • compile all .html files into single .js file of compiled code using grunt
  • create client side templateResolver service
Here is sample code in my JavaScript projects.
 
Post a Comment