chore(templates): update tabs templates for 3.0

This commit is contained in:
Daniel Imhoff
2017-03-15 15:15:41 -05:00
parent 305848274d
commit 06b388bb68
4 changed files with 18 additions and 20 deletions

View File

@ -7,7 +7,7 @@ import { IonicModule } from 'ionic-angular';
$CLASSNAME, $CLASSNAME,
], ],
imports: [ imports: [
IonicModule.forChild($CLASSNAME) IonicModule.forChild($CLASSNAME),
], ],
entryComponents: [ entryComponents: [
$CLASSNAME, $CLASSNAME,

View File

@ -1,17 +1,17 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { $CLASSNAMEPage } from './$FILENAME'; import { $CLASSNAME } from './$FILENAME';
import { IonicModule } from 'ionic-angular'; import { IonicModule } from 'ionic-angular';
@NgModule({ @NgModule({
declarations: [ declarations: [
$CLASSNAMEPage, $CLASSNAME,
], ],
imports: [ imports: [
IonicModule.forChild($CLASSNAMEPage) IonicModule.forChild($CLASSNAME),
], ],
entryComponents: [ entryComponents: [
$CLASSNAMEPage $CLASSNAME,
], ],
providers: [] providers: []
}) })
export class $CLASSNAMEPageModule {} export class $CLASSNAMEModule {}

View File

@ -1,5 +1,4 @@
describe('$CLASSNAME', () => {
describe('$CLASSNAMEPage', () => {
it('should do something', () => { it('should do something', () => {
expect(true).toEqual(true); expect(true).toEqual(true);
}); });

View File

@ -1,22 +1,21 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { NavController } from 'ionic-angular'; import { DeepLink, NavController } from 'ionic-angular';
/* /**
Generated class for the $CLASSNAME tabs. * Generated class for the $CLASSNAME tabs.
*
See https://angular.io/docs/ts/latest/guide/dependency-injection.html * See https://angular.io/docs/ts/latest/guide/dependency-injection.html for
for more info on providers and Angular 2 DI. * more info on providers and Angular DI.
*/ */
@Component({ @Component({
selector: 'page-$FILENAME', selector: 'page-$FILENAME',
templateUrl: '$FILENAME.html' templateUrl: '$FILENAME.html'
}) })
export class $CLASSNAMEPage { @DeepLink()
export class $CLASSNAME {
$TAB_VARIABLES $TAB_VARIABLES
constructor(public navCtrl: NavController) { constructor(public navCtrl: NavController) {}
} }
}