docs: dependency-injection.jade

Fix absolute path to relative path
closes #419
This commit is contained in:
Brady Potaczek 2015-11-30 15:09:57 -06:00 committed by Ward Bell
parent 0d46bce291
commit 347c79c514
1 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ include ../../../../_includes/_util-fns
[provide(HeroService, {useClass:HeroService})];
```
and the `provide` method in turn creates a new instance of the Angular
[Provider class](http://localhost:3000/docs/ts/latest/api/core/Provider-class.html):
[Provider class](/docs/ts/latest/api/core/Provider-class.html):
```
[new Provider(HeroService, {useClass:HeroService})]
```
@ -521,7 +521,7 @@ include ../../../../_includes/_util-fns
This time we don't have a class to serve as a token. There is no `Config` class.
Fortunately, the token can be a string, a class type, or an
[OpaqueToken](http://localhost:3000/docs/ts/latest/api/core/OpaqueToken-class.html).
[OpaqueToken](/docs/ts/latest/api/core/OpaqueToken-class.html).
Internally, the `Provider` turns the string and class parameter into an `OpaqueToken`;
the injector locates dependency values and providers by this token.