NathanWalker / nativescript-ngx-fonticon

Use custom font icon collections seamlessly with NativeScript + Angular.
MIT License
76 stars 39 forks source link

Keep getting "Undefined" on [text]= property. #19

Closed ADjenkov closed 7 years ago

ADjenkov commented 7 years ago

Using Android. Followed all the instruction. When I use [text]="'fa-music' | fonticon:'fontawesome'" on a <Button> e get Undefined as text. When I use the same over a <Label> the entire label is not displayed.

Using {N} 2.4.2 + Ag2

PS: Also tried to manually download .ttf files in to app/fonts/ along with font-awesome.css in app/

pette9 commented 7 years ago

I'm getting this too, any solution?

pette9 commented 7 years ago

it worked for me when i used [text]="'fa-music' | fonticon" instead of [text]="'fa-music' | fonticon:'fontawesome' "

ADjenkov commented 7 years ago

Thanks @pette9 it really works!