(Angular) I can’t get my fontawesome icons to appear. I’m pointing to the 5.15.1 CDN. Here are some code snippets:
In the component.ts:
angleLeft = faAngleLeft;
In the component.html:
<fa-icon [icon] = angleLeft></fa-icon>
<i class="fas fa-icon"></i>
(In the module.ts I have references to CUSTOM_ELEMENTS_SCHEMA.)
Can anyone address this? Thank you.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (
</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
It would be a bit hard to track the exact issue when the whole project is missing.
I recommend making a stackblitz project with your current code so we can get deep into it and solve the issue.
Add this to your file