Reputation: 101
I have my angular app with version 1 so can i upgrade it with angular version 2
We started to design a new project that designated to be built with Angular as each of our previous, the importance of this project is very high and it's going to live and maintained for at least years.
Angular 2.0 has came in beta mode and it seems like everything is about to change, $scope is out, directives are out and the whole DI concept is about to change.
Please help me to sort out.
Upvotes: 8
Views: 4634
Reputation: 195
There is a online website which converts angular 1.x HTML code snippets to Angular 4.x. it goes not support ts yet but if you have old application with lots of HTML pages, this might come handy.
https://www.linkedin.com/pulse/online-angular-1x-4x-converter-balram-chavan
Upvotes: 0
Reputation: 2337
I think that migrating from Angular 1 to 2 is not nearly as bad as most people think it is.
Basically, you need to break it down and migrate the concepts first...
Almost all of those can be mapped back to 1.x concepts - even if there is not a 1:1 relationship. Once you understand how each of these things are done, it's much easier to decide how to slowly migrate your existing code to the new concepts.
It's hard to cover each and all of those things in a single SO answer, so maybe check out ngmigrate.telerik.com which goes into a lot more detail.
Upvotes: 5
Reputation: 221
Enabling mixing of Angular 1 and Angular 2 in the same application. You can mix Angular 1 and Angular 2 components in the same view. Angular 1 and Angular 2 can inject services across frameworks. Data binding works across frameworks.
Application upgrade process:
ref: http://angularjs.blogspot.com/2015/08/angular-1-and-angular-2-coexistence.html
Upvotes: 3