mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(templates): clean up generator templates
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
import { IonicModule } from 'ionic-angular';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@ -8,6 +8,9 @@ import { IonicModule } from 'ionic-angular';
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forChild($CLASSNAME),
|
||||
],
|
||||
exports: [
|
||||
$CLASSNAME
|
||||
]
|
||||
})
|
||||
export class $CLASSNAMEModule {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
import { IonicModule } from 'ionic-angular';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@ -8,6 +8,9 @@ import { IonicModule } from 'ionic-angular';
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forChild($CLASSNAME),
|
||||
],
|
||||
exports: [
|
||||
$CLASSNAME
|
||||
]
|
||||
})
|
||||
export class $CLASSNAMEModule {}
|
||||
|
@ -7,11 +7,11 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
||||
* See http://ionicframework.com/docs/v2/components/#navigation for more info
|
||||
* on Ionic pages and navigation.
|
||||
*/
|
||||
@IonicPage()
|
||||
@Component({
|
||||
selector: 'page-$FILENAME',
|
||||
templateUrl: '$FILENAME.html',
|
||||
})
|
||||
@IonicPage()
|
||||
export class $CLASSNAME {
|
||||
|
||||
constructor(public navCtrl: NavController, public navParams: NavParams) {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
import { IonicModule } from 'ionic-angular';
|
||||
import { $CLASSNAME } from './$FILENAME';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
Reference in New Issue
Block a user