I am new to the angular and I know the basics of the angular. We have a very big project written in plain javascript, HTML, CSS in the front end and spring MVC restful APIs in backend.
Now our plan is to migrate this very big application to angular. But we cannot migrate it in one go as its big and messed up in javascript code. Here javascript code is not written as per the standard practice.
We have decided to just migrate one page initially. What will be the approach we need to follow to do this.
I am thinking of developing and deploying the separate application for that page in angular. Remove the existing page from existing application. Whenever the page is requested in the browser it will be served from the angular separate application. Other pages will be served from the existing application. But here we manage the session for existing application, how I can manage the same session in the angular application also. We maintain session in a browser cookie.
The second approach is to create a separate application for that page build it and integrate it into an existing application.
Please suggest me which approach is better and what are the pros and cons of each approach. Please suggest me if there is any other option or solution.
Our ultimate goal is to move everything in angular not at one time but slowly.