Answers for "s a web component then add 'custom_elements_schema' to the '@ngmodule.schemas' of this component to suppress this message."

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
0

2. If 'app-navbar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
Posted by: Guest on December-21-2020

Code answers related to "s a web component then add 'custom_elements_schema' to the '@ngmodule.schemas' of this component to suppress this message."

Browse Popular Code Answers by Language