News for hackers. Stuff that matters.
Re:AngularJS support is ending, and developers can migrate t... by pram on Thursday January 13, 2022 @07:55AM (#29920248)
When the deprecation was originally announced I basically just decided to sever from Angular all together. The "migration" practically involved rewriting pretty much everything anyway. The new thing is surely technically superior, but it just left me very bitter. I learned my lesson!
Re:AngularJS support is ending, and developers can migrate t... by Alex3917 on Thursday January 13, 2022 @10:09AM (#29921515)
> The "migration" practically involved rewriting pretty much everything anyway.

I used the 10-step process outlined here and it was pretty straightforward: https://codecraft.tv/courses/angularjs-migration/overview/in...

There were definitely methods in the components that needed to be moved into services, but there wasn't really much rewriting per se.

FWIW the first five steps, in terms of upgrading the AngularJS app so that it used isolated components instead of nested scopes, was more time consuming than actually porting the modernized AngularJS app to Angular.

Re:AngularJS support is ending, and developers can migrate t... by arnvald on Thursday January 13, 2022 @08:46AM (#29920657)
Same experience here. Despite tools provided by the Angular team, the migration was really, really painful. I spent a significant amount of time moving a large AngularJS app to Angular, and despite all the effort we were still far from completing it when I left the company.

These days I use Vue or React instead.

Re:AngularJS support is ending, and developers can migrate t... by bradleyjg on Thursday January 13, 2022 @09:04AM (#29920835)
You should have talked to an old GWT dev before starting down the road of using a Google maintained framework.
Re:AngularJS support is ending, and developers can migrate t... by hsbauauvhabzb on Thursday January 13, 2022 @09:12AM (#29920906)
I’ve seen gwt. It smells bad, but it seems supported still. Can you elaborate on your comment so I have conversation points next time I deal with that team?
Re:AngularJS support is ending, and developers can migrate t... by bradleyjg on Thursday January 13, 2022 @12:52PM (#29924058)
Google hived off support to an open source foundation about a decade ago. It wasn’t well supported even before that for several years (I remember at one point they went through and closed all the open issues as Assumed Stale). They also loved to pivot best practices every year and stop developing the code that supported last year’s best practices.
Re:AngularJS support is ending, and developers can migrate t... by hsbauauvhabzb on Friday January 14, 2022 @01:54AM (#29931361)
As an outsider that’s an extremely insightful and not something I’d ever learn from official documentation. Thank you for your response.
Re:AngularJS support is ending, and developers can migrate t... by ldiracdelta on Thursday January 13, 2022 @09:09AM (#29920869)
This is why I never even considered flutter development. Who knows when the platform will just die on the vine.
Re:AngularJS support is ending, and developers can migrate t... by JamesSwift on Thursday January 13, 2022 @09:02AM (#29920815)
Ive migrated several apps to angular 2 and assuming you got to angular 1.6 (or even just 1.4 with components) first, the rewrite is no big deal unless you heavily leverage specific things (root scope, some directive stuff, some template cache stuff). Especially with ngUpgrade available, I never found it terribly hard, though it did take time.
Re:AngularJS support is ending, and developers can migrate t... by tdekoekkoek on Thursday January 13, 2022 @09:41AM (#29921203)
why would you be bitter since they just improved the platform. It wasn't hard to learn the migration and AngularJS needed to be let go. Angular is every bit as good as other alternatives.
Re:AngularJS support is ending, and developers can migrate t... by NicoJuicy on Thursday January 13, 2022 @08:08AM (#29920350)
AngularJS is a different framework. They are not the same and i think that was very clear from the start.

( I've written webapps in both AngularJS and Angular)

Re:AngularJS support is ending, and developers can migrate t... by pram on Thursday January 13, 2022 @08:33AM (#29920542)
Yes obviously. Angular started as "Angular 2" (as in version 2 of AngularJS) and didn't exist until like half a decade after AngularJS. You think it was 'clear from the start' that they'd just abandon AngularJS? Why would anyone have used it?
Re:AngularJS support is ending, and developers can migrate t... by hnbad on Thursday January 13, 2022 @09:58AM (#29921388)
Not only that, Angular 2 spent an extremely long time in beta with several major changes (the original architecture was built around "Object.observe", which was a proposed language feature that was canned after Google tried to implement it and realized there was no way to make it efficient). Users looking into Angular were actively discouraged from using Angular 2 prior to its stable release despite AngularJS being clearly a dead end and even after the dust had settled there was no clear upgrade path from AngularJS to Angular 2.

By comparison React has provided automated code migration scripts for every breaking change and continuous to support class-based components and lifecycle events despite most of the ecosystem having moved on to function-based components and hooks. Say what you will about React, Facebook or Meta, but at least there have always been clear upgrade paths that didn't involve rewriting the entire application from scratch.

Re:AngularJS support is ending, and developers can migrate t... by simiones on Thursday January 13, 2022 @09:08AM (#29920866)
It was clear from the start of Angular 2, not from the start of Angular (later renamed AngularJS).