ngUpgraders / ng-forward

The default solution for those that want to write Angular 2.x style code in Angular 1.x
411 stars 36 forks source link

way to upgrade to angular2 #106

Closed david-gang closed 4 years ago

david-gang commented 8 years ago

Hi all,

We should have a documented way how to upgrade to angular2, once it is out.

I thought about two nice ways:

What do you think about it?

A third (less cool) option would be just to document the steps :-(

Thanks, David

timkindberg commented 8 years ago

I really like this idea.

I've thought about your first idea before. We should theoretically be able to call Angular 2 apis in place of the Angular 1 apis behind the scenes. However, then you are using the ng-forward layer over top of the Angular 2 layer and you probably won't want that to be the case long term. You'll probably want to actually convert to Angular 2.

So your second idea also seems pretty good, certainly we could have a script for the basic stuff. There will most likely be plenty of things we can't do with a script though. But if we can get devs 50% there I think that would be great.

Documenting is a very realistic option and probably something we can do at a minimum.

All this being said, I'm personally not ready to start looking into this. We have a lot of work simply polyfilling Angular 2 ahead of us first.