angular2-fontawesome icon indicating copy to clipboard operation
angular2-fontawesome copied to clipboard

Installation instructions to Angular CLI are deprecated

Open QuentinBrosse opened this issue 7 years ago • 3 comments

In this pull, the addons property has been deleted form the angular-cli.json: https://github.com/angular/angular-cli/pull/4052.

So, the:

  1. ../node_modules/font-awesome/fonts/*.+(otf|eot|svg|ttf|woff|woff2) to addons block of angular-cli.json.

must be modified.

Thanks ! :)

QuentinBrosse avatar Jun 13 '17 15:06 QuentinBrosse

Yo, so how should we install it ? Can't make it work..

nawwa avatar Jun 18 '17 18:06 nawwa

@nawwa

  1. Install packages: npm i --save font-awesome angular2-fontawesome.
  2. Add Angular2FontawesomeModule in the imports of your @NgModule.
  3. In your .angular-cli.json, add "node_modules/font-awesome/css/font-awesome.min.css" in styles`;
  4. Use the package in your templates like this: <fa [name]="'plus'"></fa>.

:)

QuentinBrosse avatar Jul 05 '17 08:07 QuentinBrosse

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.

xGeiben avatar Jul 31 '17 19:07 xGeiben