0.1.5 • Published 6 years ago

ng-url-to-template v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ng-url-to-template

Forked from jsvalley/ng2-inline-template and added support for adding component's content one by one like as follow:

...
comp.template = './test';
comp.restrict = 'E';
...

Replaces templateUrl and styleUrls in Angular1 or Angular2 components/directives into template and styles.

Install

$ npm install --save ng-url-to-template

Or install globally to use ngUrl2Template in command line

$ npm install --g ng-url-to-template

Usage

In a node module

var ngUrl2Template = require('ng-url-to-template');
var output = ngUrl2Template('./my.compnent.js');

In command line

$ ngUrl2Template --outDir=dist "src/**/*.js"

License

MIT

0.1.5

6 years ago

0.1.4

6 years ago

0.1.2

6 years ago