r/javascript • • Jan 03 '20

[deleted by user]

[removed]

90 Upvotes

34 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Jan 03 '20

Yeah, I still work in AngularJS, we use most of these improvements, and it's not too bad. I would still like to upgrade to Vue or Angular though.

1

u/Reashu Jan 04 '20 edited Jan 04 '20

We are doing this with a mix of ngVue and vue-custom-element. Neither is perfect, but if you can deal with limited slot support (for the AngularJS-Vue boundary) it might be helpful.

If you can do it one page at a time rather than one component at a time, that would likely be much simpler, but our organization and business requirements wouldn't accommodate that.

1

u/Ashhhh Jan 04 '20

Once you've done the first 3 steps, you can bootstrap your app in Angular instead and continue to use your AngularJS components using ng-upgrade

Once there, the upgrade process is fairly straightforward. Done it on two major projects now.

1

u/[deleted] Jan 04 '20

Yeah, Ng upgrade is on the roadmap. But there are a couple of incompatibilities that we are trying to iron out to start with.

1

u/Ashhhh Jan 05 '20

You can downgrade any new components from Angular 2 to Angular 1 in the meantime and use ng-metadata where heavy restrictions apply.

As long as anything new is as ng2 as possible, you're making progress.