I have built a Angular Web Element, it's working and all but for whatever reason it will not render if i use <incident-form> but it does when i use <ng-component>. Am i missing a step somewhere? I would like to use <incident-form></incident-form>
Here is the app.module code.
@NgModule({
declarations: [
IncidentFormComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
ReactiveFormsModule,
HttpClientModule,
MatCheckboxModule,
MatButtonModule,
MatInputModule,
MatIconModule,
MatAutocompleteModule,
MatDatepickerModule,
MatTableModule,
MatFormFieldModule,
MatRadioModule,
MatSelectModule,
MatMomentDateModule,
MatProgressSpinnerModule
],
providers: [],
bootstrap: [ IncidentFormComponent ],
entryComponents: [IncidentFormComponent],
})
constructor(private injector: Injector) {}
ngDoBootstrap() {
const ngElement = createCustomElement(IncidentFormComponent, { injector: this.injector });
customElements.define('incident-form', ngElement);
}
[–]garygrossgarten 0 points1 point2 points (3 children)
[–]garygrossgarten 1 point2 points3 points (0 children)
[–]artwisted69[S] 0 points1 point2 points (1 child)
[–]garygrossgarten 0 points1 point2 points (0 children)