(
options:
| StaticProvider[]
| {providers: Array<Provider | StaticProvider>; parent?: Injector; name?: string},
parent?: Injector,
)
| 105 | }): DestroyableInjector; |
| 106 | |
| 107 | static create( |
| 108 | options: |
| 109 | | StaticProvider[] |
| 110 | | {providers: Array<Provider | StaticProvider>; parent?: Injector; name?: string}, |
| 111 | parent?: Injector, |
| 112 | ): Injector { |
| 113 | if (Array.isArray(options)) { |
| 114 | return createInjector({name: ''}, parent, options, ''); |
| 115 | } else { |
| 116 | const name = options.name ?? ''; |
| 117 | return createInjector({name}, options.parent, options.providers, name); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /** @nocollapse */ |
| 122 | static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({ |
no test coverage detected
searching dependent graphs…