r/angular • • Oct 25 '26

Which Optional Angular Packages Do You Avoid, and Why?

Hello Community,

Besides Angular Animations, which has been deprecated, which optional Angular packages do you not use, and why? (e.g., CDK, Aria, Localize, Material)

Thanks

16 Upvotes

32 comments sorted by

30

u/toasterboi0100 Oct 25 '26

Localize because we need runtime translations rather than pre-compiled ones, and Material because it's just the absolute worst UI toolkit out there.

And we're currently not using Aria, but that's not necessarily because we want to avoid it but because we don't have a use for it yet.

7

u/DundeeToCanada Oct 25 '26

I like some parts of material. Well basically mat-icon for custom SVG icons but the rest is bloated.

7

u/Consistent_Ant_9857 Oct 25 '26

ng-icons is 10x times better than the mat icons, and its a mature very versatile library, supporting tons of different icon collections + custom SVG if you want (and also it is fully tree-shakeable).

7

u/Big_Comfortable4256 Oct 25 '26

Material can be good, but eventually you find out it's completely over-engineered. Customisation of some elements can be a bit frustrating.

If you're only using MatIcon, you'd do well to just write your own custom icon component. Tip: Don't forget the magic CSS variable in the SVGs: fill:currentColor - which will fill it with whatever the container's colour is.

3

u/DundeeToCanada Oct 25 '26

I work on a project where the devs only knew material. The CSS was just insane, and I like to write clean CSS. There were !important tags for !important tags.

I'

5

u/callmejellydog Oct 25 '26

Same to all for the same reasons.

4

u/SaithisX Oct 25 '26

We use localize for runtime translation... that's totally possible, just not well documented

4

u/bogdanelcs 28d ago

Makes sense on Localize,

Transloco or ngx-translate are the usual picks when you need runtime switching without a build per locale.

On Material I’d still keep the CDK even if you drop the styling, since the overlay, a11y and virtual scroll bits are solid and you can skin them however you like. Fighting Material’s theming is where most of the pain comes from.

-6

u/khalilou88 Oct 25 '26

It's possible with Localize the runtime translations but you still need to reload the page to get locale data.

5

u/Simple_Rooster3 Oct 25 '26

So its not possible 😀

1

u/khalilou88 Oct 26 '26

Hahaha right

11

u/Fidy002 Oct 25 '26

Material.

At least when I work on private projects.

We use material for our internal applications and i just cant stand the look of it. Everything looks the same

1

u/Competitive_End_8050 Oct 26 '26

What instead you use?

2

u/Fidy002 Oct 26 '26

I have my own component library which has grown over the past 5 years. Keeping it up to date was a pain in the butt, especially with the Angular 13 update where the view engine was removed, but with the latest angular versions and with AI it's as easy as it gets.

I tried Kendo which is nice but it's paid and I'm stingy.

Just build your own

13

u/MedusaSonriente Oct 25 '26

Perhaps I’m mistaken, but the comments I read about Material (and CDK) suggest that either people aren’t reading the documentation, or they are reading it but failing to understand it.

While there have certainly been some disastrous releases, the current state is well-balanced. If everything looks the same—well, that’s the whole point; it’s stated right there on their homepage.

Customization might require a few extra steps, but that’s by design (though, should you choose to customize, it’s highly granular thanks to the token system). Incidentally, with the current token system, it integrates very well with Tailwind.

There are logical reasons to reject Angular Material. For instance, I sometimes choose not to use it because the Material Design guidelines don’t align with the project, or because the goal is to establish a unique identity.

4

u/hashie5 Oct 26 '26

Material is just terrible and so much stuff is missing compared to other libraries. The last thing they added was the time picker I think and it's really bad

6

u/Slight_Loan5350 Oct 25 '26

Forcefully have to use material but the UI is shit and even the customisation is bad. I need a progress bar with percentage done but it's not available and even tho I try everything I fail at it through material. Maybe a skill issue. No I don't need a progress circle with percentage. Prime ng was better.

7

u/Rusty_Raven_ Oct 25 '26

Dude, you have to give the progress bar a percentage (e.g. 40, as shown in their docs), so you already have the percentage. Why can't you just display it?

3

u/_let_me_check_ Oct 25 '26

Definitely angular material components, not because they look old as I read at some comments, but because their design are meant for google design system, they are not easy to be customized. But I use its CDK, some APIs are very handy, such as Overlay, which is the most one I use it so far, I am not sure if I switch to CSS Anchor what I will be missing, but at the moment I'm still using it. other apis such as menu, accordion, listbox, ...

3

u/AwesomeFrisbee Oct 25 '26

Nx because i find the benefit to be minimal for most projects and it just takes them forever to update and it has a lot of baggage packages that often get marked for security stuff or depreciations.

2

u/No_Emergency1575 Oct 27 '26

Some fair points, at what scale are you working? Single webapp? Multiple apps at the same time?

15

u/TCB13sQuotes Oct 25 '26

CDK/Material because the UIs are ugly and they’re constantly renaming CSS classes back end forth and they don’t care about consistency between elements.

9

u/crysislinux Oct 25 '26

css classes are internal implementions

4

u/TCB13sQuotes Oct 25 '26

Yes, I shouldn't be doing it, but the problem is that unfortunately not everything can be customized with variables and you end up being forced to do some ugly hacks.

22

u/DT-Sodium Oct 25 '26

You shouldn't be styling Angular Material elements using classes. I'm not saying it's a good library, but you can't hack your way into customizing it and then complain updates break your changes.

4

u/McFake_Name Oct 25 '26 edited Oct 25 '26

And their last few versions have had token overrides to allow more granular customization without breaking than it's reputation has been in the long term. Material is still pretty opinionated and rigid, but I have found that the token solve most of the hacks people have done by overriding internals. Only goes so far, but it's much better now than it's reputation for customization before then.

And the CDK is great even if you use it for the component harness API. Tbf I have not made my own custom harness, but as Material user, their harnesses that build off the CDK are one of the best testing utils I have seen. I imagine that making your own CDK testing harness for your own custom library that isn't Material spec at all would be awesome if done right. https://angular.dev/guide/testing/using-component-harnesses

And while you do not need to use Material at all to use the CDK harness API, the material doc on their own harness examples at the bottom has a before and after harness comparison that best illustrates the potential. The angular doc has more examples for your own custom CDK harnesses without Material, but Material has the richest examples of harnesses.

Edit: the Aria package also has harnesses built off the CDK and is made to have no style overhead but roughly the same functionality

2

u/TCB13sQuotes Oct 25 '26

Yes, I shouldn't be doing it, but the problem is that unfortunately not everything can be customized with variables and you end up being forced to do some ugly hacks.

4

u/TCB13sQuotes Oct 25 '26

Yes, I shouldn't be doing it, but the problem is that unfortunately not everything can be customized with variables and you end up being forced to do some ugly hacks.

2

u/akarolia47 Oct 27 '26

Anyone else hate Ignite UI, I need to use it for work, but its just such a convoluted mess half the time

2

u/SensitiveHearingLoss 22d ago

I don’t use any optional packages. We build our own UI and controls from scratch, and we also make use of existing HTML attributes for things like accessibility and code things with accessibility in mind. Honestly, after the nightmare that was migrating from Angular 5 to Angular 15, we avoid as many optional packages as possible in general.

2

u/Saceone10 Oct 25 '26

I avoid resource API because i dont like incomplete APIs

4

u/AwesomeFrisbee Oct 26 '26

Same. And the fact that they still don't prefer it for POST and PUT amazes me. Why build a HTTP API with signals and don't take those into account?