Feature(generators): Add generators for components, directives, and injectables

This commit is contained in:
jbavari
2015-10-30 23:21:54 -06:00
parent 25b672dabe
commit c79ccfc5ca
7 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import {Component, NgIf} from 'angular2/angular2';
@Component({
directives: [NgIf],
properties: ['value'], //Change to be whatever properties you want, ex: <<%= fileAndClassName %> value="5">
selector: '<%= fileAndClassName %>',
templateUrl: 'app/<%= fileAndClassName %>/<%= fileAndClassName %>.html'
})
export class <%= javascriptClassName %> {
constructor() {
this.nav = nav;
this.popup = popup;
this.dataService = dataService;
}
}