Answers for "is a web component then add 'custom_elements_schema' to the '@ngmodule.schemas' of this c"

1

add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message

//In the app.module.ts
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
...
@NgModule({
  declarations: [ ... ],
  exports: [ ... ],
  imports: [ ... ],
  schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
Posted by: Guest on February-22-2021

Code answers related to "is a web component then add 'custom_elements_schema' to the '@ngmodule.schemas' of this c"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language