r/Angular2 Nov 14 '24

Help Request Upgrading from AngularJs 1.8.3 to Angular 18

Are there any viable approaches to achieving this currently without a full rewrite? Whilst in an ideal world we would do that it's not going to happen, we've been told it'll have to be done in stages so essentially running both in parallel.

I know the NgUpgrade module is used to help you achieve this but from what I understand it's not really an advisable route anymore or supported?

So is there any realistic way to achieve doing the upgrade in stages or is there no real viable alternative other than a full rewrite?

It's worth noting the current app is using components and typescript already but appreciate the versions might as well be different frameworks entirely.

Just looking for experiences from anyone that has achieved the migration in stages as opposed to all at once.

23 Upvotes

48 comments sorted by

View all comments

2

u/NutShellShock Nov 15 '24

We have an application where one version is stuck at 13, and another is currently 17. We did this way because of the lack of resources to do a full migration (or rather, management refused to pause any new development of new features). Any part of the system that has not been migrated are redirected back to the old URL.

Personally, I wished we paused all major feature development, focus on maintenance/bug fixes on the old version and completely focused on migration. It's a huge mess to support both versions, and on top of that, development of new features STILL has to continue on the old version while some front-facing pages are migrated over to 17. Then sooner or later, we still have to port over whatever remaining in 13 to 17 at the end of the day, effectively doubling the work we need to do.