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 { NgModule } from '@angular/core';
|
||||||
import { $CLASSNAME } from './$FILENAME';
|
|
||||||
import { IonicModule } from 'ionic-angular';
|
import { IonicModule } from 'ionic-angular';
|
||||||
|
import { $CLASSNAME } from './$FILENAME';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -8,6 +8,9 @@ import { IonicModule } from 'ionic-angular';
|
|||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forChild($CLASSNAME),
|
IonicModule.forChild($CLASSNAME),
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
$CLASSNAME
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class $CLASSNAMEModule {}
|
export class $CLASSNAMEModule {}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { $CLASSNAME } from './$FILENAME';
|
|
||||||
import { IonicModule } from 'ionic-angular';
|
import { IonicModule } from 'ionic-angular';
|
||||||
|
import { $CLASSNAME } from './$FILENAME';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -8,6 +8,9 @@ import { IonicModule } from 'ionic-angular';
|
|||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule.forChild($CLASSNAME),
|
IonicModule.forChild($CLASSNAME),
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
$CLASSNAME
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class $CLASSNAMEModule {}
|
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
|
* See http://ionicframework.com/docs/v2/components/#navigation for more info
|
||||||
* on Ionic pages and navigation.
|
* on Ionic pages and navigation.
|
||||||
*/
|
*/
|
||||||
|
@IonicPage()
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'page-$FILENAME',
|
selector: 'page-$FILENAME',
|
||||||
templateUrl: '$FILENAME.html',
|
templateUrl: '$FILENAME.html',
|
||||||
})
|
})
|
||||||
@IonicPage()
|
|
||||||
export class $CLASSNAME {
|
export class $CLASSNAME {
|
||||||
|
|
||||||
constructor(public navCtrl: NavController, public navParams: NavParams) {}
|
constructor(public navCtrl: NavController, public navParams: NavParams) {}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { $CLASSNAME } from './$FILENAME';
|
|
||||||
import { IonicModule } from 'ionic-angular';
|
import { IonicModule } from 'ionic-angular';
|
||||||
|
import { $CLASSNAME } from './$FILENAME';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
Reference in New Issue
Block a user