fix(decorators): changes to match angular style guide

This commit is contained in:
Justin Willis
2016-06-10 14:43:19 -05:00
parent 761a1f6245
commit 9315c68c89
12 changed files with 29 additions and 24 deletions

View File

@ -11,6 +11,9 @@ import {Component} from '@angular/core';
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
})
export class <%= jsClassName %> {
text: string;
constructor() {
this.text = 'Hello World';
}

View File

@ -11,5 +11,5 @@ import {NavController} from 'ionic-angular';
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
})
export class <%= jsClassName %> {
constructor(public nav: NavController) {}
constructor(private nav: NavController) {}
}

View File

@ -10,9 +10,11 @@ import 'rxjs/add/operator/map';
*/
@Injectable()
export class <%= jsClassName %> {
data: any = null;
data: any;
constructor(public http: Http) {}
constructor(private http: Http) {
this.data = null;
}
load() {
if (this.data) {

View File

@ -8,7 +8,7 @@ import {NavController} from 'ionic-angular';
})
export class <%= jsClassName %> {
constructor(public nav: NavController) {
constructor(private nav: NavController) {
// set the root pages for each tab
<% _.forEach(tabs, function(tab, i) { %>this.tab<%= ++i %>Root = <%= tab.jsClassName %>;
<% }); %>