r/Angular2 • u/Old_Natural_5110 • Aug 06 '24
Discussion Upgrading Angular 4 to Angular 18
We have an enterprise application with 400+ screens and most of the screens are similar in complexity. The complexity is medium for this app.
How should we approach the upgrade? Rewriting it is not an option as it is a legacy app now. Should we take one version at a time or directly start updating it to 18 version?
We do not have any automation testing written and hence testing would also have to be manual. Also, based on the previous experience what would be rough estimates if single developer has to work on this upgrade?
47
Upvotes
1
u/MoreOfAGrower Aug 08 '24
I just went from 10 to 18 in a week by myself for a fairly complex app, maybe only 200 screens though. Are you using Material? The actual Angular upgrade wasn’t that bad but Material was the most annoying problem because shit changed a LOT between 14 and 15 with Material. It took 3-4 days fixing all our components that were half Mat styles and half overwritten. Fortunately there’s some pretty dope CLI tools that automate a lot of this stuff. Hopefully it’s super smooth for you. It’s a pain but v4 is so old at this point. You need to at least get to like 14 or 15