Skip to content

Commit 7a53452

Browse files
committed
Merge pull request #716 from antonybudianto/patch-1
Add http injection
2 parents 8307f93 + 311ac1c commit 7a53452

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

a2/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ Translations of this Angular 2 style guide are maintained by the community. Due
311311

312312
@Injectable()
313313
export class HeroService {
314+
constructor(private _http: Http) { }
315+
314316
getHeroes() {
315317
return this._http.get('api/sessions')
316318
.map((response: Response) => <Session[]>response.json().data)

0 commit comments

Comments
 (0)