Closed kuehlc closed 4 years ago
I works in the header, but not in viewer if that wasn't clear from the initial post.
You need to add FontAwesomeModule to imports array of the module where your component is present in the declarations array for Angular to know about fa-icon component.
I have Fontawesome in shared module which is in viewer as well though
Viewer component is in viewer module which has SharedModule imported
Exporting it from sharedmodule made it work.
I am explicitly using angular fontawesome 0.6.0, and it seems to not be working for a component that I have. It works in another one that is declared in the app module, but not a component that is in a module that was imported to app module. I may just be crazy and missing something simple, but it looks almost the same, and I don't see why it isn't working.