mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(templates): update tabs templates for 3.0
This commit is contained in:
@ -7,7 +7,7 @@ import { IonicModule } from 'ionic-angular';
|
||||
$CLASSNAME,
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forChild($CLASSNAME)
|
||||
IonicModule.forChild($CLASSNAME),
|
||||
],
|
||||
entryComponents: [
|
||||
$CLASSNAME,
|
||||
|
@ -1,17 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { $CLASSNAMEPage } from './$FILENAME';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
import { IonicModule } from 'ionic-angular';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
$CLASSNAMEPage,
|
||||
$CLASSNAME,
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forChild($CLASSNAMEPage)
|
||||
IonicModule.forChild($CLASSNAME),
|
||||
],
|
||||
entryComponents: [
|
||||
$CLASSNAMEPage
|
||||
$CLASSNAME,
|
||||
],
|
||||
providers: []
|
||||
})
|
||||
export class $CLASSNAMEPageModule {}
|
||||
export class $CLASSNAMEModule {}
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
describe('$CLASSNAMEPage', () => {
|
||||
describe('$CLASSNAME', () => {
|
||||
it('should do something', () => {
|
||||
expect(true).toEqual(true);
|
||||
});
|
||||
|
@ -1,22 +1,21 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NavController } from 'ionic-angular';
|
||||
import { DeepLink, NavController } from 'ionic-angular';
|
||||
|
||||
/*
|
||||
Generated class for the $CLASSNAME tabs.
|
||||
|
||||
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
|
||||
for more info on providers and Angular 2 DI.
|
||||
*/
|
||||
/**
|
||||
* Generated class for the $CLASSNAME tabs.
|
||||
*
|
||||
* See https://angular.io/docs/ts/latest/guide/dependency-injection.html for
|
||||
* more info on providers and Angular DI.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'page-$FILENAME',
|
||||
templateUrl: '$FILENAME.html'
|
||||
})
|
||||
export class $CLASSNAMEPage {
|
||||
@DeepLink()
|
||||
export class $CLASSNAME {
|
||||
|
||||
$TAB_VARIABLES
|
||||
|
||||
constructor(public navCtrl: NavController) {
|
||||
constructor(public navCtrl: NavController) {}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user