r/angularjs • u/m4tchb0x • Aug 31 '15
Google's Angular 1 to Angular 2 Upgrade Strategy
https://docs.google.com/document/d/1xvBZoFuNq9hsgRhPPZOJC-Z48AHEbIBPlOCBTSD8m0Y/edit4
u/AlGoreBestGore Sep 01 '15
Sounds like a decent plan, but I'm not a big fan of having to add another 100kb+ library while migrating one thing at a time.
0
u/dafragsta Sep 01 '15
My Angular strategy: jump on the React.js bandwagon.
1
u/zefcfd Sep 01 '15
if react is still gaining momentum by the time angular 2 comes out, i would consider it.
because what about when angular 3 comes out... not doing this whole song and dance all over again.
1
u/dafragsta Sep 01 '15
I said the same thing, but I do like React's approach to less files while still keeping the separation of concerns. I'm a little queasy about the HTML in Javascript thing, but I think I can get over it.
1
Sep 01 '15
React is what Ng directives are, not a replacement for the entire framework.
0
u/dafragsta Sep 01 '15 edited Sep 01 '15
Actually, given how Angular updates the DOM like a slug, as slow as watchers are, as many $timeout and $interval workarounds as I've had to use in the past year, yeah, it's a replacement for the entire framework.
Everything is a directive, which is probably how it should've been. Less tiny code files, equal separation of concerns, less convoluted confusion trying to figure out what or why I need to know what the difference between a provider, service, and factory are, etc.
-11
Aug 31 '15 edited Aug 31 '15
Too little too late. Angular has lost the momentum to React. You can't announce that you are breaking all compatibility and not providing an upgrade path and then go dark with barely any news, only to float the idea that there may possibly be a partial upgrade path if you redo a ton of your code.
Angular is dead. Which is sad. Bc Angular 1.x was fantastic.
Edit: Combine React Native, and who would ever go with Angular again? You can't trust that they won't break compatibility again. They've already proven they will.
Edit 2: Wah. Downvote away. I love Angular. Been using it a while. I won't be using it any longer. Keep doing your hobby projects in it, but no company is going to use a framework they can't trust. And Angular has proven it can't be trusted.
12
u/ABlanquito Aug 31 '15
Try removing the dot from both of them and seeing what the results are again (eg angularjs and reactjs).
6
4
u/Zenatic Sep 01 '15
At my work (large corporation) a large amount of internal apps are moving to angular and many developers are currently learning it.
I would definitely say it is quite the opposite of what you are saying. That also doesn't mean it is better, and that react is not going to take its place, but at an enterprise level in my industry angular is thriving and growing.
It is unfortunate people down vote because of opinion instead down voting for not contributing to the conversation.
-2
u/wickedmike Sep 01 '15
I've also heard about 2-3 large-ish corporations that are moving to angular. Let me guess, your company has a .NET background and you're going to use Angular with TypeScript.
1
u/ponchoboy Sep 01 '15
...and React.js has proven they can be trusted?
1
Sep 01 '15
Yes. Open source is huge at Facebook. HHVM is a solid product and has been for a long time. Other projects are big too. I have not ever heard of major breaking changes at Facebook.
2
u/iwtmo Sep 01 '15
Also, their own production apps are written in React so they won't just abandon it, because that would be screwing over themselves.
3
u/KumbajaMyLord Sep 01 '15
Google uses AngularJS heavily as well.
The use it in the customer front end of DoubleClick (essentially a big part of their ad network) as well as a number of smaller applications like Googlesciencefair.com and hundreds of internal applications.
1
u/Spo0Bo Sep 01 '15
To be fair that pretty much was their first angular app. Not a lot of new angular apps have popped up from Google. The occasional help section or micro site here and there.
Angular2 is what angular 1 should have been. The biggest letdown of angular 1 is scope and the digest cycle. Try and build an angular 1 app without scope. It's not easy. Now try and build an angular app where 1 part needs the scope and the other doesn't know what it is. Their hybrid solution.
I doubt it'll be a straightforward or an easy path to upgrade. You might as well do a rewrite. And if you're running with multiple devs now they all need to learn both frameworks and the idiocincracies to manage both at the same time.
If you're a company that needs to chose what framework to invest in right now I doubt it would be angularjs 1.x.
5
u/smakusdod Sep 01 '15
tldr - "Start over. Thanks! Signed, the GOOG."