Home > Enterprise >  Update Old Angular codebase to latest (v15)
Update Old Angular codebase to latest (v15)

Time:12-05

I am looking for the least painful way to update an angular application from v7 to v15. I have started out on it, its a pretty large codebase with loads of packages and implementations that are deprecated. Is there an easier way to go about this? Thank you for your answers!

I used

ng update @angular/cli

also did for the core angular modules. Its just really a lot and I wanted to find out if there was an easier way around it.

CodePudding user response:

The best way of updateing such big steps is by made it to little simpler steps one by one.

I always use the angular update guide to get all the recommended and needed changes: https://update.angular.io/

If you use this guide and update major version by major version it should be easier to you.

CodePudding user response:

1.. we learned how to get our Todo application up and running and deploy it to GitHub pages. This worked just fine but, unfortunately, the whole app was crammed into a single component.

2.. we examined a more modular component architecture and learned how to break this single component into a structured tree of smaller components that are easier to understand, reuse and maintain.

3.. we updated our application to communicate with a REST API backend using RxJS and Angular’s HTTP service.

4.., we introduced Angular Router and learned how the router updates our application when the browser URL changes and how we can use the router to resolve data from our backend API.

5.., we added authentication to our application and learned how we can protect sections from our application from unauthorized access.

  • Related