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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user