(token: ProviderToken<T>, defaultValue?: any, options?: any)
| 22 | constructor(readonly parent: Injector) {} |
| 23 | |
| 24 | get<T>(token: ProviderToken<T>, defaultValue?: any, options?: any): T { |
| 25 | if ((token as any).ɵprov && (token as any).ɵprov.providedIn === 'root') { |
| 26 | return runInInjectionContext(this, () => { |
| 27 | return (token as any).ɵprov.factory(); |
| 28 | }); |
| 29 | } |
| 30 | return this.parent.get(token, defaultValue, options); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | { |
nothing calls this directly
no test coverage detected