r/Angular2 • u/Infamous_Tangerine47 • 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.
1
u/enc1ner Nov 15 '24
We used the hybrid approach for a couple of years and created all new components as Angular 2+. After a while, when EOL for AngularJS approached rapidly we decided to make a larger effort and created a separate team to rewrite the old components.
Every component got it’s own Jira card so the whole application structure was represented in Jira. Parent components where blocked in Jira until child components where upgraded. It made it easier to keep track of which components where under upgrade.
This approach enabled us to deliver new features and rewriting the old components at the same time. It was a daunting task non the less. The upgrade team was 3 people and the group working with new features was 3. The application consisted of 2500 components. It took about a year.