feat(generators): refactor generators

* feat(generators): update templates

* feat(generators): add pipeName to templates
This commit is contained in:
Mike Hartington
2017-07-25 11:28:13 -04:00
committed by GitHub
parent add0c4ecfe
commit 400aa549d4
5 changed files with 6 additions and 8 deletions

View File

@@ -9,8 +9,5 @@ import { $CLASSNAME } from './$FILENAME';
imports: [
IonicPageModule.forChild($CLASSNAME),
],
exports: [
$CLASSNAME
]
})
export class $CLASSNAMEModule {}

View File

@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
$IMPORTSTATEMENT
/**
* Generated class for the $CLASSNAME page.
@@ -7,7 +7,7 @@ import { NavController, NavParams } from 'ionic-angular';
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
$IONICPAGE
@Component({
selector: 'page-$FILENAME',
templateUrl: '$FILENAME.html',

View File

@@ -7,7 +7,7 @@ import { Pipe, PipeTransform } from '@angular/core';
* Angular Pipes.
*/
@Pipe({
name: '$FILENAME',
name: '$PIPENAME',
})
export class $CLASSNAME implements PipeTransform {
/**

View File

@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
$TABS_IMPORTSTATEMENT
/**
* Generated class for the $CLASSNAME tabs.
@@ -7,6 +7,7 @@ import { NavController } from 'ionic-angular';
* See https://angular.io/docs/ts/latest/guide/dependency-injection.html for
* more info on providers and Angular DI.
*/
$IONICPAGE
@Component({
selector: 'page-$FILENAME',
templateUrl: '$FILENAME.html'