What would be the way to add "Font Awesome" to a project with Angular2 built with anguar-cli? The goal is not to use the font awesome CDN.
What would be the way to add "Font Awesome" to a project with Angular2 built with anguar-cli? The goal is not to use the font awesome CDN.
It's quite simple, you just have to install the dependency by means of npm
in the following way:
npm install font-awesome --save
Then in your angular-cli.json file you must link the styles in the following way within arreglo
styles
"styles": [
"styles.css",
"../node_modules/font-awesome/css/font-awesome.css" // Aquí añades tu css desde la carpeta node_modules
],