npm i fortawesome fontawesome angular code example
Example 1: add font awesome to angular
<!--In the index.html-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
Example 2: npm font awesome 5 angular 7
# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>