mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(decorators): changes to match angular style guide
This commit is contained in:
@ -11,6 +11,9 @@ import {Component} from '@angular/core';
|
|||||||
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
|
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
|
||||||
})
|
})
|
||||||
export class <%= jsClassName %> {
|
export class <%= jsClassName %> {
|
||||||
|
|
||||||
|
text: string;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.text = 'Hello World';
|
this.text = 'Hello World';
|
||||||
}
|
}
|
||||||
|
@ -11,5 +11,5 @@ import {NavController} from 'ionic-angular';
|
|||||||
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
|
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
|
||||||
})
|
})
|
||||||
export class <%= jsClassName %> {
|
export class <%= jsClassName %> {
|
||||||
constructor(public nav: NavController) {}
|
constructor(private nav: NavController) {}
|
||||||
}
|
}
|
||||||
|
@ -10,9 +10,11 @@ import 'rxjs/add/operator/map';
|
|||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class <%= jsClassName %> {
|
export class <%= jsClassName %> {
|
||||||
data: any = null;
|
data: any;
|
||||||
|
|
||||||
constructor(public http: Http) {}
|
constructor(private http: Http) {
|
||||||
|
this.data = null;
|
||||||
|
}
|
||||||
|
|
||||||
load() {
|
load() {
|
||||||
if (this.data) {
|
if (this.data) {
|
||||||
|
@ -8,7 +8,7 @@ import {NavController} from 'ionic-angular';
|
|||||||
})
|
})
|
||||||
export class <%= jsClassName %> {
|
export class <%= jsClassName %> {
|
||||||
|
|
||||||
constructor(public nav: NavController) {
|
constructor(private nav: NavController) {
|
||||||
// set the root pages for each tab
|
// set the root pages for each tab
|
||||||
<% _.forEach(tabs, function(tab, i) { %>this.tab<%= ++i %>Root = <%= tab.jsClassName %>;
|
<% _.forEach(tabs, function(tab, i) { %>this.tab<%= ++i %>Root = <%= tab.jsClassName %>;
|
||||||
<% }); %>
|
<% }); %>
|
||||||
|
Reference in New Issue
Block a user