docs(di): fix incorrectly fomatted code blocks
This commit is contained in:
parent
4efc4a5520
commit
4e5c663b02
|
@ -734,6 +734,7 @@ export class Injector {
|
||||||
* var car = injector.instantiateResolved(carBinding);
|
* var car = injector.instantiateResolved(carBinding);
|
||||||
* expect(car.engine).toBe(injector.get(Engine));
|
* expect(car.engine).toBe(injector.get(Engine));
|
||||||
* expect(car).not.toBe(injector.instantiateResolved(carBinding));
|
* expect(car).not.toBe(injector.instantiateResolved(carBinding));
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
instantiateResolved(binding: ResolvedBinding): any {
|
instantiateResolved(binding: ResolvedBinding): any {
|
||||||
return this._instantiateBinding(binding, Visibility.PublicAndPrivate);
|
return this._instantiateBinding(binding, Visibility.PublicAndPrivate);
|
||||||
|
|
|
@ -20,7 +20,6 @@ import {CONST} from 'angular2/src/core/facade/lang';
|
||||||
*
|
*
|
||||||
* Using an `OpaqueToken` is preferable to using an `Object` as tokens because it provides better
|
* Using an `OpaqueToken` is preferable to using an `Object` as tokens because it provides better
|
||||||
* error messages.
|
* error messages.
|
||||||
* ```
|
|
||||||
*/
|
*/
|
||||||
@CONST()
|
@CONST()
|
||||||
export class OpaqueToken {
|
export class OpaqueToken {
|
||||||
|
|
Loading…
Reference in New Issue