FortAwesome / angular-fontawesome

Official Angular component for Font Awesome 5+
https://fontawesome.com
MIT License
1.48k stars 152 forks source link

Stacked icons do not work in standalone components #433

Closed davidmcclelland closed 7 months ago

davidmcclelland commented 7 months ago

Describe the problem

When converting my application to use standalone components, I noticed that a stacked icon was displaying improperly, despite working prior to conversion.

image

What did you expect?

Icons should be properly stacked

Reproducible test case

Stackblitz

devoto13 commented 7 months ago

You also need to add FaStackItemSizeDirective to the imports.

I'll investigate if it's possible to load it automatically with the component or at least make Angular throw an error if not imported. So please leave this issue open for now.

davidmcclelland commented 7 months ago

D'oh, that was obvious. Automatic importing would be excellent, but I'm glad to have a workaround. Thank you!