1.0.0 • Published 7 years ago

ng2-inline-js v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

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