ng-html2js is a preprocessor for converting HTML files to AngularJS templates. It converts HTML files into JS strings and generates Angular modules. These modules, when loaded, put these HTML files into the $templateCache and therefore Angular won't try to fetch them from the server. For instance template.html will be served as template.html.js:
ng-html2js is a preprocessor for converting HTML files to AngularJS templates.
It converts HTML files into JS strings and generates Angular modules. These modules, when loaded, put these HTML files into the $templateCache and therefore Angular won't try to fetch them from the server.
For instance template.html will be served as template.html.js: