I've recently started using Angular 4 and PrimeNG. I have been able to easily set up some components like a menubar with menuitems. The problem is that I want to use glyphicons and not font-awsome icons, that are with primeng by default for what I could understand, and if I define the icon property on my item object, like this:
{
label: this.lg.trans('print_selection'),
icon: 'glyphicon glyphicon-print',
command: this.printSelectedVisits
}
it renders the element with the classes fa fa-ws glyphicon glyphicon-print
. This messes the icon up and it shows neither the glyphicon nor the fa icon, it shows some jibberish. I have been looking for hours but I failed to find some solution to take out the fa classes. I know that the fa classes are messing up because if I remove them from the element via dev tools, it shows the glyphicon.
If I remove the import for font-awsome icons from the angular-cli.json it shows the right icon but it doesn't remove the classes and this seems like an hack that could bring problems in the future.
Any idea on what I am doing wrong?
Any help would be most appreciated. Thanks