I am currently working on an enterprise Angular application. I am thinking about the correct components library to use. I found two options:
1- Angular Material2
2- PrimeNG
Angular material comes with about 35 high quality components. PrimeNg comes with about 87 different components. I like Material2 design and styling which follow Google standards. I prefer it but later we will need more advanced components that not available. My question is it a good idea to use both Material2 and PrimeNg at the same time? or this will cause overhead, conflicts and slow down the application? Should I stick to PrimeNg only?
It's two completely separate libraries, and it's not 2000 where libraries post some things into global scope, you know, so you can use both of them, the only concern is that they might have markup selectors intersection and styles can conflict with each other but you need to check that.
Angular Material is user friendly and can be used by beginners; it is also preferred by a lot of experienced developers as it is highly customizable. PrimeNG can be used by experienced developers that would want to apply complex functionality with style, without having to customize or code for most of it.
I used both Angular Material and PrimeNg for a recent project. I'd recommend you to use just one of them(either Angular Material or PrimeNg)
PrimeNg has a lot of powerful Components. I really liked how many of these components are Reactive Forms Friendly as they implement ControlValueAccessor
. Plus there's hardly a Component in Angular Material that you'll not find in PrimeNg.
If you use both of them, however, you'll probably end up in some styling issues, some of them related to z-index. I faced one with some cards grid mostly build in Angular Material but the Calendar that I used was from PrimeNg. I had to put in a hack using Angular Material Flex in order to make it work.
A few advantages of using just one of them would be:
So again, if possible, use just one.
PS: This is my personal opinion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With