mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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,
|
$CLASSNAME,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forChild($CLASSNAME)
|
IonicModule.forChild($CLASSNAME),
|
||||||
],
|
],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
$CLASSNAME,
|
$CLASSNAME,
|
||||||
|
@ -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 {}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
|
describe('$CLASSNAME', () => {
|
||||||
describe('$CLASSNAMEPage', () => {
|
|
||||||
it('should do something', () => {
|
it('should do something', () => {
|
||||||
expect(true).toEqual(true);
|
expect(true).toEqual(true);
|
||||||
});
|
});
|
||||||
|
@ -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) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user