( rootComponent: Type<unknown>, options?: ApplicationConfig, context?: BootstrapContext, )
| 121 | * @publicApi |
| 122 | */ |
| 123 | export async function bootstrapApplication( |
| 124 | rootComponent: Type<unknown>, |
| 125 | options?: ApplicationConfig, |
| 126 | context?: BootstrapContext, |
| 127 | ): Promise<ApplicationRef> { |
| 128 | const config = { |
| 129 | rootComponent, |
| 130 | ...createProvidersConfig(options, context), |
| 131 | }; |
| 132 | |
| 133 | if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') { |
| 134 | await resolveJitResources(); |
| 135 | } |
| 136 | |
| 137 | return internalCreateApplication(config); |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Create an instance of an Angular application without bootstrapping any components. This is useful |
no test coverage detected
searching dependent graphs…