parent
85195742bc
commit
54573563a3
|
@ -316,6 +316,7 @@ include ../../../../_includes/_util-fns
|
||||||
|
|
||||||
Here's a rewrite of `HeroService` with a new constructor that takes a `logger` parameter.
|
Here's a rewrite of `HeroService` with a new constructor that takes a `logger` parameter.
|
||||||
```
|
```
|
||||||
|
import {Injectable} from 'angular2/angular2';
|
||||||
import {Hero} from './hero';
|
import {Hero} from './hero';
|
||||||
import {HEROES} from './mock-heroes';
|
import {HEROES} from './mock-heroes';
|
||||||
import {Logger} from './logger';
|
import {Logger} from './logger';
|
||||||
|
|
Loading…
Reference in New Issue