angular2-fontawesome
angular2-fontawesome copied to clipboard
Installation instructions to Angular CLI are deprecated
In this pull, the addons
property has been deleted form the angular-cli.json
: https://github.com/angular/angular-cli/pull/4052.
So, the:
../node_modules/font-awesome/fonts/*.+(otf|eot|svg|ttf|woff|woff2)
to addons block of angular-cli.json.
must be modified.
Thanks ! :)
Yo, so how should we install it ? Can't make it work..
@nawwa
- Install packages:
npm i --save font-awesome angular2-fontawesome
. - Add
Angular2FontawesomeModule
in theimports
of your@NgModule
. - In your
.angular-cli.json
, add"node_modules/font-awesome/css/font-awesome.min.css" in
styles`; - Use the package in your templates like this:
<fa [name]="'plus'"></fa>
.
:)
I find it hard to believe that this instruction i'ts not in the README docs: Install packages: npm i --save font-awesome angular2-fontawesome.