visurel / iconify-angular

Angular implementation of Iconify, strongly inspired from Iconify-React.
19 stars 14 forks source link

'ic-icon' is not a known element #13

Closed MahmoudThePeltist closed 3 years ago

MahmoudThePeltist commented 3 years ago

I'm getting this error and the icons aren't showing up even though I'm following the readme for string syntax. I'm using Angular 11.

'ic-icon' is not a known element:
1. If 'ic-icon' is an Angular component, then verify that it is part of this module.
2. If 'ic-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.ng
MahmoudThePeltist commented 3 years ago

Never mind lol, forgot to import the module in my app.module.ts file

import { IconModule } from '@visurel/iconify-angular';

  imports: [
    BrowserModule,
    AppRoutingModule,
    IconModule
  ]