How do I use font-awesome 5 with Angular (2+)?
I\'ve tried adding this inside a component:
import {faChevronLe
I am using Font Awesome 5 in Angular
This is HTML code
Star
This is my Component
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'favorite',
templateUrl: './favorite.component.html',
styleUrls: ['./favorite.component.css']
})
export class FavoriteComponent implements OnInit {
isFavorite: boolean;
prefix:string;
constructor() { }
ngOnInit() { }
onClick(){
this.isFavorite = !this.isFavorite;
}
}
`