dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AppModule cluster_AppModule_declarations cluster_AppModule_imports AppComponent AppComponent AppModule AppModule AppComponent->AppModule AppWebComponent AppWebComponent AppWebComponent->AppModule CoreModule CoreModule CoreModule->AppModule LinkCardsModule LinkCardsModule LinkCardsModule->AppModule OrganModule OrganModule OrganModule->AppModule StatsListModule StatsListModule StatsListModule->AppModule

File

src/app/app.module.ts

Methods

ngDoBootstrap
ngDoBootstrap()
Returns : void
import { DoBootstrap, Injector, NgModule } from '@angular/core';
import { createCustomElement } from '@angular/elements';
import { BrowserModule } from '@angular/platform-browser';

import { AppWebComponent } from './app-web-component.component';
import { AppComponent } from './app.component';
import { CoreModule } from './core/core.module';
import { OrganModule } from './features/organ/organ.module';
import { LinkCardsModule } from './modules/link-cards/link-cards.module';
import { StatsListModule } from './modules/stats-list/stats-list.module';

@NgModule({
  imports: [BrowserModule, CoreModule, LinkCardsModule, StatsListModule, OrganModule],
  declarations: [AppComponent, AppWebComponent],
  providers: [],
})
export class AppModule implements DoBootstrap {
  constructor(private readonly injector: Injector) {}

  ngDoBootstrap(): void {
    const appElement = createCustomElement(AppWebComponent, {
      injector: this.injector,
    });

    customElements.define('ccf-organ-info', appElement);
  }
}

results matching ""

    No results matching ""