mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(templates): modify tabs template to code-split
This commit is contained in:
17
scripts/templates/tabs/module.ts.tmpl
Normal file
17
scripts/templates/tabs/module.ts.tmpl
Normal file
@ -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 {}
|
@ -1,6 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NavController } from 'ionic-angular';
|
||||
$TAB_IMPORTS
|
||||
|
||||
/*
|
||||
Generated class for the $CLASSNAME tabs.
|
||||
|
Reference in New Issue
Block a user