I got FontAwasome pro configured and working in my Angular 10 projet.
<div class="update-split" [class]="testClass"><fa-icon [icon]="['fad', 'sync-alt']"></fa-icon></div>
This line work, and display the correct icon But If I try to bind the icon like this:
<div class="update-split" [class]="testClass"><fa-icon [icon]="testIcon"></fa-icon></div>
Then do this in my ts file
this.testIcon = "['fad', 'sync-alt']";
I got: ERROR Error: Could not find icon with iconName=['fad', 'sync-alt'] and prefix=fas in the icon library.
So, he try to found a icon named ['fad', 'sync-alt'] in the normal fas library. Maybe is only a string with ' " error? Thanks
this.testIcon = ['fad', 'sync-alt'];
rather than in strings – Anusha_Mamidala