I want to load the fonts dynamically in my angular 5 project and it is working fine when I use
<i data-icon="" ></i>
but when I load the value dynamically in angular 5 by using
<i [attr.data-icon]="w" ></i>
In the component.ts file w value is same
w= ""
then its not working.
But when I saw in console both scenarios then for the first scenario data-icon value turns into an utf code but for the [attr.data-icon] it show the value ""