How to install "font awesome" in angular2 with angular-cli?

0

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.

    
asked by Pablo Ezequiel 07.03.2017 в 17:31
source

1 answer

1

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
],
    
answered by 07.03.2017 / 17:40
source