<div class="card"> vs. <p-card>

Post Reply
vwn
Posts: 5
Joined: 07 Oct 2019, 09:17

27 Feb 2020, 16:36

Hello,

in the template you are using <div class="card"> or <div class="card-w-title"> and not the primeng standard <p-card>. Is there any reason for that? And what should I use when creating a new app?

Bests
Sushi

merve7
Posts: 690
Joined: 12 Sep 2017, 10:44

02 Mar 2020, 13:36

Hi,
We use class="card" because of to avoid PrimeNG dependency. Since templates can be used without PrimeNG as well.
You can use what you want and if you use primeng, you can use the card component.

Post Reply

Return to “Roma - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest