Passiverecords / angular-flag-icon-css

flag-icon-css for Angular 5+
7 stars 0 forks source link

am I missing a configuration? #2

Closed chr1soscl closed 5 years ago

chr1soscl commented 5 years ago

I installed the packages: npm install ngx-flag-icon-css flag-icon-css

then I am using the tag in the html:

but I am getting the below error:

  1. If 'flag-icon' is an Angular component, then verify that it is part of this module.
  2. If 'flag-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

    Here are some links to help you start:

[ERROR ->]

AnthonyLenglet commented 5 years ago

You might've forgotten to declare the component in app.module.ts

nelson6e65 commented 5 years ago

You might've forgotten to declare the component in app.module.ts

This is not specified in the documentation.

If someone, for A7:

// . . .
import { NgxFlagIconCssModule } from 'ngx-flag-icon-css';

@NgModule({
  declarations: [
  ],
  imports: [
    // . . .
    NgxFlagIconCssModule
  ]
})
export class ComponentsModule { }
gentunian commented 4 years ago

@AnthonyLenglet can you please add the required things into docs? I cannot get it working either for Angular9.