angular fontawesome iconlibrary code example
Example: 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"
]