A Grunt plugin to take external angular templates and put them inline to the main app file.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-ng-template --save-dev
The "ng_template" task
In your project's Gruntfile, add a section named
ng_template to the data object passed into
The above configuration will take your external views from
app/views and place them into the bottom of
app\index.html. The plugin needs the directory name of your app and the main app file seperately, so it can ensure it writes the correct script ids ( urls ) for Angular.js to use.