Reputation: 225
Can anyone give me a simple step-by-step guide on how to install font awesome (free version) in my angular 12 app in visual studio 2019? I've googled endlessly and seen many options of differing complexity. Why on earth is there this ridiculous amount of complexity simply to use some fonts?
Upvotes: 0
Views: 2492
Reputation: 20334
In command prompt execute following command:
npm i @fortawesome/fontawesome-free
In styles.scss
add this line:
@import '~@fortawesome/fontawesome-free/css/all.css';
Use it:
<span class="fab fa-angular"></span>
Upvotes: 2