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.
|
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 %> {
|
||||||
|
@ -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 %> {
|
||||||
|
@ -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 %> {
|
||||||
|
@ -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 %> {
|
||||||
|
Reference in New Issue
Block a user