r/angularjs • • Aug 25 '15

Angular 1 and Angular 2 integration: the path to seamless upgrade

http://angularjs.blogspot.com/2015/08/angular-1-and-angular-2-coexistence.html
65 Upvotes

11 comments sorted by

12

u/yads12 Aug 25 '15

This is a fantastic upgrade path. Looks like they're really taking feedback from the community.

4

u/Arjes Aug 25 '15

Can anyone elaborate on:

Native mobile UI. We're enthusiastic about supporting the Web Platform in mobile apps. At the same time, some teams want to deliver fully native UIs on their iOS and Android mobile apps

Do they just mean the 2.0 will be built to create a smooth experience on mobile?

3

u/tayste5001 Aug 25 '15

probably has something to do with react native

1

u/snarkyturtle Aug 25 '15

Speaking of which, it's apparently possible to make a react native app in angular 2: https://github.com/angular/react-native-renderer

1

u/Brazilll Aug 25 '15

It means that Angular 2.0 isn't intrinsically tied to HTML because it used a virtual dom strategy. It can communicate with other view engines such as react-native and NativeScript.

1

u/dutchmaster Aug 26 '15

Upgrading to 2 will still be a pain in the ass

2

u/vinnl Aug 26 '15

Upgrading/mainting an app is anyway. However, if you keep up with new versions (i.e. first continue upgrading through the 1.X series), I think the final step to v2 won't be that big.

1

u/ogrechoker Aug 26 '15

If you're feeling really ballsy, you can start using decorators for components and import/export syntax with jspm

I have a 1.4 app that looks identical to a 2.0 app. tldr: don't be lazy.

0

u/[deleted] Aug 26 '15

[deleted]

2

u/dutchmaster Aug 26 '15

Don't get me wrong, before reading this I thought we were left hung out to dry. I've spend the last year working on a large application using angular. While this will definitely help, upgrading the whole application to 2 is going to take a long time.

It's the time required to do the upgrade that makes it a pain in the ass. There's a lot of steps involved with doing the upgrade and while they've outlined a "typical" application I wonder how this will actually play out and how "typical" most/my applications are.

4

u/NeverSpeaks Aug 26 '15

If you're application is clean and organized it shouldn't be that difficult to transition. If transitioning is difficult for your team you probably want to look at your code base anyways.