Reputation: 2557
Looking for a gulp plugin to replace "templateUrl":path with "template":content for angular directives.
Templates can be large and writing all of them inline is not an option.
Using $templateCache is also not an option because it introduces extra dependency. Already tried ngHtml2js and similar plugins, didn't like it.
Upvotes: 2
Views: 803
Reputation: 3861
You can use this plugin for Angular 2: https://github.com/ludohenin/gulp-inline-ng2-template or this one for Angular: https://www.npmjs.com/package/grunt-plugin-angular-template-inline
Upvotes: 1