Does primeNg upgrade need Angular upgrade?

8.9k views Asked by At

I am planning to use primeng turbo table feature that is included in 5.x.

Right now, we are using version 4.3 in our project. When I upgraded primeng to latest version, I came across many issues. Many answers in google suggested to upgrade Angular version accordingly.

I want to confirm if the upgrade of primeNg needs an upgrade of Angular as well?

2

There are 2 answers

5
mpro On BEST ANSWER

According to the newest primeng release notes:

PrimeNG 6.0.0 is fully compatible with Angular 6 and RxJS 6, if you are using Angular 5 then you need to continue using PrimeNG 5.x instead.

Also 5.0.0 version release is compatible accordingly:

PrimeNG 5 fully support Angular 5, if your project is on Angular 4, the PrimeNG version to use would be 4.x as PrimeNG 5 does not work on Angular 4 due to AOT constraints.

So try to always check release notes.

0
HDJEMAI On

If you want to use PrimeNG 6, then it is fully compatible with angular 6 and you cannot use primeNG 6 with angular 5, you can only use PrimeNG 5 with angular 5.

You can read that here: https://www.primefaces.org/primeng-6-0-0-released/

If you want to use PrimeNG 7.0.0, then you need to upgrade to angular 7.

The PrimeNG 4.2.3 is compatible with angular 5: https://www.primefaces.org/primeng-4-2-2-released/

So you need to verify the compatible angular version and upgrade to it, when you use a newer version of PrimeNG