diff --git a/scripts/templates/tabs/module.ts.tmpl b/scripts/templates/tabs/module.ts.tmpl new file mode 100644 index 0000000000..8a642bf1f6 --- /dev/null +++ b/scripts/templates/tabs/module.ts.tmpl @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { $CLASSNAMEPage } from './$FILENAME'; +import { IonicModule } from 'ionic-angular'; + +@NgModule({ + declarations: [ + $CLASSNAMEPage, + ], + imports: [ + IonicModule.forChild($CLASSNAMEPage) + ], + entryComponents: [ + $CLASSNAMEPage + ], + providers: [] +}) +export class $CLASSNAMEPageModule {} \ No newline at end of file diff --git a/scripts/templates/tabs/ts.tmpl b/scripts/templates/tabs/ts.tmpl index e29f736e4d..d9d1e1e261 100755 --- a/scripts/templates/tabs/ts.tmpl +++ b/scripts/templates/tabs/ts.tmpl @@ -1,6 +1,5 @@ import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; -$TAB_IMPORTS /* Generated class for the $CLASSNAME tabs.