by crescentfresh · 6y ago · 0 comments
This let's us start using Vue today and slowly phase out AngularJS.
I don't know Vue, and I don't know your setup, but what we opted for was:
1. Building a foundation in Vue/React.
2. Create an iframe component.
3. Load the angularjs app into the iframe.
4. Build a messaging system to notify the parent app of state changes.
5. Build a system to show/hide the angular app depending on the URL or view.
This method worked well for us.
The same pattern at my current role has worked while migrating an AngularJS app to Vue.
But converting a large, old project is always going to be hard. You either need a way to mix two different frameworks, which is going to be messy, or do a complete rewrite, which is a massive amount of work.