chore(generators): remove use of custom decorators

This commit is contained in:
Adam Bradley
2016-05-31 15:42:54 -05:00
parent 73635f3939
commit e5522d2de8
4 changed files with 12 additions and 8 deletions

View File

@ -1,4 +1,5 @@
import {Page, NavController} from 'ionic-angular'; import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
/* /*
Generated class for the <%= jsClassName %> page. Generated class for the <%= jsClassName %> page.
@ -6,7 +7,7 @@ import {Page, NavController} from 'ionic-angular';
See http://ionicframework.com/docs/v2/components/#navigation for more info on See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation. Ionic pages and navigation.
*/ */
@Page({ @Component({
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html', templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
}) })
export class <%= jsClassName %> { export class <%= jsClassName %> {

View File

@ -1,4 +1,5 @@
import {Page, NavController} from 'ionic-angular'; import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
/* /*
Generated class for the <%= jsClassName %> page. Generated class for the <%= jsClassName %> page.
@ -6,7 +7,7 @@ import {Page, NavController} from 'ionic-angular';
See http://ionicframework.com/docs/v2/components/#navigation for more info on See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation. Ionic pages and navigation.
*/ */
@Page({ @Component({
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html', templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
}) })
export class <%= jsClassName %> { export class <%= jsClassName %> {

View File

@ -1,8 +1,9 @@
import {NavController, Page} from 'ionic-angular'; import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
<% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../<%= tab.fileName %>/<%= tab.fileName %>'; <% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../<%= tab.fileName %>/<%= tab.fileName %>';
<% }); %> <% }); %>
@Page({ @Component({
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html' templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
}) })
export class <%= jsClassName %> { export class <%= jsClassName %> {

View File

@ -1,8 +1,9 @@
import {NavController, Page} from 'ionic-angular'; import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
<% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../<%= tab.fileName %>/<%= tab.fileName %>'; <% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../<%= tab.fileName %>/<%= tab.fileName %>';
<% }); %> <% }); %>
@Page({ @Component({
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html' templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
}) })
export class <%= jsClassName %> { export class <%= jsClassName %> {