0

I am trying <i class="fas fa-user-plus" *ngIf="!loggedIn"></i>

But I don't receive any image. here is what i receive:

Here is what i received

I did install font-awesome from here https://www.npmjs.com/package/@fortawesome/angular-fontawesome#get-started step by step .

"styles": ["node_modules/font-awesome/scss/font-awesome.scss"]
Ralf
  • 16,086
  • 4
  • 44
  • 68
Mindru Ion
  • 373
  • 5
  • 19
  • Possible duplicate of [Font Awesome 5 with Angular](https://stackoverflow.com/questions/48027322/font-awesome-5-with-angular) – Scipione Sarlo Jun 03 '19 at 18:10

2 Answers2

0

Usage section at the link you provided suggests to use like this

 <fa-icon [icon]="faCoffee"></fa-icon>
ihor.eth
  • 2,207
  • 20
  • 27
0

The package you installed does not contain:

"node_modules/font-awesome/scss/font-awesome.scss"

Use the following path instead:

"node_modules/@fortawesome/fontawesome-free/css/all.css"
Maihan Nijat
  • 9,054
  • 11
  • 62
  • 110