Skip to content

Commit

Permalink
Conditionally set NgModule.bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jun 26, 2024
1 parent b461a89 commit a966785
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ import {ActionMenuComponent} from "./view/action-menu/action-menu/action-menu.co
SbbBreadcrumbModule,
SbbAutocompleteModule,
],
bootstrap: environment.customElement ? [] : [AppComponent],
providers: [
{provide: BASE_PATH, useValue: environment.backendUrl},
{provide: HTTP_INTERCEPTORS, useClass: HttpErrorInterceptor, multi: true},
Expand All @@ -244,8 +245,6 @@ export class AppModule implements DoBootstrap {
if (environment.customElement) {
const element = createCustomElement(AppComponent, {injector: this.injector});
customElements.define("sbb-root", element);
} else {
appRef.bootstrap(AppComponent);
}
}
}

0 comments on commit a966785

Please sign in to comment.