chore: move injector to being non-internal but private (#10339)

* chore: move injector to being non-internal but private

* Add the new non-internal method to the public API.
This commit is contained in:
Hans
2016-07-28 10:38:29 -07:00
committed by GitHub
parent b58e9ea775
commit a67cc8229d
4 changed files with 6 additions and 7 deletions

View File

@ -168,7 +168,7 @@ export class TestBed implements Injector {
// Tests can inject things from the ng module and from the compiler,
// but the ng module can't inject things from the compiler and vice versa.
let result = this._moduleRef.injector.get(token, UNDEFINED);
return result === UNDEFINED ? this._compiler.injector.get(token, notFoundValue) : result;
return result === UNDEFINED ? this._compiler._injector.get(token, notFoundValue) : result;
}
execute(tokens: any[], fn: Function): any {