Primeicons not showing in Angular 9

UI Components for Angular
Post Reply
LauraM
Posts: 2
Joined: 12 May 2020, 14:19

12 May 2020, 14:38

Hello!

I don't seem to make primeicons to work in Angular 9, some blank squares are displayed instead. So, this is a recap of all I did to install and use the feature:
  • Install primeicons locally using npm (current version "primeicons": "^3.0.0-rc.1")
  • Add in angular.json the line "node_modules/primeicons/primeicons.css" in the styles section
  • Use it in my template like this icon="pi pi-search" in my button, for example
As far as I can see it, I am following the instructions, what could I be missing?

Thank you,
Laura

LauraM
Posts: 2
Joined: 12 May 2020, 14:19

14 May 2020, 17:29

In case someone else is facing the same thing, here's what I did further:
  • Install cdk: npm i @angular/cdk --save
  • Reboot application
This also solved some other issues I had with button displaying.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests