mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(generators): remove use of custom decorators
This commit is contained in:
@ -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.
|
||||
@ -6,7 +7,7 @@ import {Page, NavController} from 'ionic-angular';
|
||||
See http://ionicframework.com/docs/v2/components/#navigation for more info on
|
||||
Ionic pages and navigation.
|
||||
*/
|
||||
@Page({
|
||||
@Component({
|
||||
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
|
||||
})
|
||||
export class <%= jsClassName %> {
|
||||
|
@ -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.
|
||||
@ -6,7 +7,7 @@ import {Page, NavController} from 'ionic-angular';
|
||||
See http://ionicframework.com/docs/v2/components/#navigation for more info on
|
||||
Ionic pages and navigation.
|
||||
*/
|
||||
@Page({
|
||||
@Component({
|
||||
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
|
||||
})
|
||||
export class <%= jsClassName %> {
|
||||
|
@ -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 %>';
|
||||
<% }); %>
|
||||
|
||||
@Page({
|
||||
@Component({
|
||||
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
|
||||
})
|
||||
export class <%= jsClassName %> {
|
||||
|
@ -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 %>';
|
||||
<% }); %>
|
||||
|
||||
@Page({
|
||||
@Component({
|
||||
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
|
||||
})
|
||||
export class <%= jsClassName %> {
|
||||
|
Reference in New Issue
Block a user