ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Add support for Angular 21

Open markuspalme opened this issue 1 month ago • 6 comments

This is the usual issue to track the comparability with Angular 21.

The current version can only be installed with accepting legacy peer dependencies:

Image

markuspalme avatar Nov 26 '25 15:11 markuspalme

Unfortunately, usually it is long story... Funny: while I waiting for official v20 support, when it happened, angular v21 was released :D

Hope, it will be faster this time.

frenzymind avatar Dec 04 '25 03:12 frenzymind

Hope, it will be faster this time.

I don't think so. I really like the Valor ngx-bootstrap, but the update cycle is a mess and errors will not be fixed. For me it's time to leave and change the library. I don't like it, but it's necessary.

elementalTIMING avatar Dec 10 '25 19:12 elementalTIMING

Well I updated to V21 and it works fine. Note Zoneless will have issues but i opted out for now. Honestly I think Zoneless issues we will need to fix on our own

sherlock1982 avatar Dec 10 '25 19:12 sherlock1982

Well I updated to V21 and it works fine. Note Zoneless will have issues but i opted out for now. Honestly I think Zoneless issues we will need to fix on our own

Do you use dropdowns and popovers? I don't get any errors but the components are not working properly.

elementalTIMING avatar Dec 10 '25 19:12 elementalTIMING

You need to opt in zone change detection after upgrade.

bootstrapApplication(MyApp, {providers: [
  provideZoneChangeDetection(),
]});

And viola.

sherlock1982 avatar Dec 10 '25 19:12 sherlock1982

You need to opt in zone change detection after upgrade.

Ahh, that's interesting. I'll give it a try tomorrow. Thank you!

elementalTIMING avatar Dec 10 '25 19:12 elementalTIMING

You need to opt in zone change detection after upgrade.

bootstrapApplication(MyApp, {providers: [
  provideZoneChangeDetection(),
]});

And viola.

It works great! However, now it's time t wait for the possibility to disable the ZoneDetection :-)

elementalTIMING avatar Dec 16 '25 22:12 elementalTIMING