AngularJS dynamic templates Learn how to create dynamic views by compiling directives at runtime. Related post: Dynamic templates in AngularJS Instructions Download the source code Open in your favorite editor npm install bower install gulp serve Note: Make sure you have Node.js 4+ version installed for gulp-inject to work properly. Otherwise downgrade gulp-inject's version.