angular fontawesome npm code example
Example 1: fontawesome angular
//2021: INSTALL IT IN ANGULAR 1ST
npm i font-awwsome
// in angular.json add in the 'build' section the following lines in 'styles' and 'scripts'
"styles"[
"node_modules/@fortawesome/fontawesome-free/css/fontawesome.css"
]
Example 2: npm font awesome 5 angular 7
# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>