From d04650c1301b00fb3f3484fb3a8c8acb12ee3a5e Mon Sep 17 00:00:00 2001 From: Daniel Imhoff Date: Thu, 23 Mar 2017 10:59:06 -0500 Subject: [PATCH] chore(templates): update component templates --- scripts/templates/component/html.tmpl | 7 +------ scripts/templates/component/module.ts.tmpl | 8 ++++---- scripts/templates/component/ts.tmpl | 14 +++++++------- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/scripts/templates/component/html.tmpl b/scripts/templates/component/html.tmpl index 0bde9e97fb..0c30d46698 100644 --- a/scripts/templates/component/html.tmpl +++ b/scripts/templates/component/html.tmpl @@ -1,9 +1,4 @@ - +
{{text}}
diff --git a/scripts/templates/component/module.ts.tmpl b/scripts/templates/component/module.ts.tmpl index 5c45472319..592f0590b7 100644 --- a/scripts/templates/component/module.ts.tmpl +++ b/scripts/templates/component/module.ts.tmpl @@ -1,13 +1,13 @@ import { NgModule } from '@angular/core'; -import { $CLASSNAMEComponent } from './$FILENAME'; +import { $CLASSNAME } from './$FILENAME'; import { IonicModule } from 'ionic-angular'; @NgModule({ declarations: [ - $CLASSNAMEComponent, + $CLASSNAME, ], imports: [ - IonicModule.forChild($CLASSNAMEComponent) + IonicModule.forChild($CLASSNAME), ] }) -export class $CLASSNAMEComponentModule {} +export class $CLASSNAMEModule {} diff --git a/scripts/templates/component/ts.tmpl b/scripts/templates/component/ts.tmpl index dc9ec6efb9..080975b222 100644 --- a/scripts/templates/component/ts.tmpl +++ b/scripts/templates/component/ts.tmpl @@ -1,16 +1,16 @@ import { Component } from '@angular/core'; -/* - Generated class for the $CLASSNAME component. - - See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html - for more info on Angular 2 Components. -*/ +/** + * Generated class for the $CLASSNAME component. + * + * See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html + * for more info on Angular Components. + */ @Component({ selector: '$FILENAME', templateUrl: '$FILENAME.html' }) -export class $CLASSNAMEComponent { +export class $CLASSNAME { text: string;