-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import {Injectable} from '@angular/core'; | ||
import {Http} from '@angular/http'; | ||
import { Injectable } from '@angular/core'; | ||
import { Http } from '@angular/http'; | ||
import 'rxjs/add/operator/map'; | ||
|
||
/* | ||
|
@@ -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; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jgw96
Author
Contributor
|
||
} | ||
|
||
load() { | ||
if (this.data) { | ||
|
2 comments
on commit 9315c68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
references issue #6847
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about the commit message on this one. Should be fix(generators) not decorators.
@jgw96 why this change?