Reputation: 11
My current project was implemented in Angular1.x and now I have requirement to add new features to exiting code base.
Can I add Angular 2 code into my Angular1.x code base porject?.
Please share what are the steps I need to follow.
Upvotes: 0
Views: 36
Reputation: 11
While this is sort of going the opposite way, in first bootstrapping the app as Angular 2+ and then bootstrapping AngularJS 1.x on top of it, it may be of assistance.
https://vsavkin.com/migrating-angular-1-applications-to-angular-2-in-5-simple-steps-40621800a25b
The goal in using this method would be to migrate your code to the latest versions little by little, while not entirely breaking your existing code.
If you're starting a new project, or if your project is rather small, I'd strongly suggest just working in the latest version by itself.
However, being the maintainer of a rather large and complex AngularJS 1.x app, I can certainly see the value in something like this.
Upvotes: 1