Question:
I am upgrading font-awesome in my angular application earlier we were having hardcoded the URL of font-awesome (from CDN ) in style.scss file, now we got to have an angular package which is as below:ng add @fortawesome/angular-fontawesome@3.0.0 and also similar SVG icons.
and we have changed the approach from
<i class="fa fa-lock"><i>
to <fa-icon icon="faLock"></fa-icon>
Now the challenging stuff here is that in my existing application we have used
unicode
as below:Please note that
my version of
fortawesomesupports
font-awesome version 5+`.ADDED packages
Answer:
Ok, if you inspect your code where you use you new icons, you should see something like that :
That means that you don’t have the css way to display FA icons :
font-family
that you will be able to use.Tell me if the part about the SVG makes sense to you if I expressed it correctly. Cheers.
If you have better answer, please add a comment about this, thank you!