I have been searching for new information to help solve the error I am experiencing but haven't found any useful results. Here is my issue: I am working on a project in Angular 15.1.0 and want to incorporate some Font Awesome icons. To do this, I followed these steps:
npm install @fortawesome/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="15747b726079746738737a7b61746270667a78787f5575313f2427226e">[email protected]</a>
Next, in angular.json
, I added "node_modules/@fortawesome/fontawesome-free/css/all.css"
at the beginning of the "styles"
array. Then, inside my component, I added <i class="fa fa-spinner fa-spin"></i>
as a button value. However, the spinner button does not render for some unknown reason. In the console, I can see the <i>
element with Font Awesome classes, but there are no class definitions displayed. I also attempted to import Font Awesome inside app.module.ts without success. Does anyone have an idea where I could find the root cause of the issue? P.S. I made sure that none of the other styles are conflicting with Font Awesome. The default style file in my project is .SCSS, if that makes a difference.