PrimeFaces + PrimeNG

UI Components for Angular
Post Reply
rikup
Posts: 459
Joined: 29 Jan 2013, 14:27

03 May 2016, 14:50

Hi,

Is it possible to use PrimeNG with Primefaces? I tried it and PrimeNG components work properly but all Primefaces components stop working and I got few "TypeError: PF(...) is undefined" when I tried to click PF components. I tried the setup without primeui-ng-all.min.js file and PF components started working again, but PrimeNG components of course didn't work then. PF version is 3.5.11, other versions are in my signature.
PrimeNG 2.0.0
Angular 2.4.5

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 May 2016, 22:13

I'm not sure if they both can be used together, the PF function is added in PrimeFaces 4.0 as I remember, it does not exist in 3.5.11 if I'm not wrong.

Also use primeui-ng.min.js instead of primeui-ng-all.min.js, as the latter one has jquery, that is already included by PrimeFaces.

rikup
Posts: 459
Joined: 29 Jan 2013, 14:27

03 May 2016, 23:04

Oh, I mistyped, the PF version is 5.3.11... I'll try primeui-ng.min.js and see if that works, thanks for suggestion.
PrimeNG 2.0.0
Angular 2.4.5

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 May 2016, 23:24

Hopefully in a couple of weeks, PrimeNG will not depend on any javascript from PrimeUI as we convert the depending ones to native angular2 components these days.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests