NPM Font Awesome 5 Angular 7
# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>
Evil Elephant
# See Compatibility table below to choose a correct version
$ ng add @fortawesome/angular-fontawesome@<version>
import { Component } from '@angular/core';
import { faCoffee } from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
faCoffee = faCoffee;
}