ng2-inline-js
v1.0.0
Published
Converts Angular templateUrls and styleUrls to their inline counterparts.
Downloads
4
Readme
Angular Inline JS
Most of the code for this script was copied from https://github.com/jsvalley/ng2-inline-template but converted for use with es5 on generated js files.
Replace templateUrl
and styleUrls
in Angular2 components template
and styles
.
Install
$ npm install --save ng2-inline-template
Or install globally to use ng2inline
in command line
$ npm install --g ng2-inline-template
Usage
In a node module
var ng2inline = require('ng2-inline-template');
var output = ng2Inline('./my.compnent.js');
In command line
$ ng2inline --outDir=dist "src/**/*.js"
License
MIT