How to install Font-Awesome in Angular

How to install Font-Awesome in Angular

Angular CLI: How to add Font-Awesome

Works in:

  • Angular CLI: 10.1.1
  • Node: 10.15.3
  • Angular: 10.1.1
  • Font-Awesome 5

Steps

  1. Install Font-Awesome into your app
    npm install --save @fortawesome/fontawesome-free
    
  2. Open app.module.ts and import the module
    import '@fortawesome/fontawesome-free/js/all.js';
    
  3. Add some icons
    <i  class="fas fa-user-shield"></i>
    
  4. Rebuild and run the app
  5. Done

References

Comments

Popular posts from this blog

WPF - Combobox with a null item

Add Cordova and Electron to an Angular App

How to enable CORS between an Angular app and an ASP.Net Web API Service