r/Angular2 • • Dec 15 '15

Angular 2 Beta -- Brad Green

http://angularjs.blogspot.com/2015/12/angular-2-beta.html
25 Upvotes

1 comment sorted by

1

u/[deleted] Dec 16 '15

Cross posting from /r/angularjs

This is awesome.

I really like what I have seen so far of Angular 2.

I have a couple of concerns though:

==

The upgrade path seems very messy.


Earlier on in the development of Angular2, there basically wasn't one.

The advice was to componentize your 1.x app, and that would make it easier to upgrade to 2.

This is what I did, and I know other Angular devs who did the same thing.

The thing is, I feel as though this was the right advice!

I now have an Angular 1.4.x app which I feel as though I can rewrite in 2.x, without too much pain, having followed the early advice of rigorous componentization (although time will tell).

I think that creating a new project for your 2.x version and actively developing it, while putting your 1.x app into maintenance-mode, is the correct advice here. Especially if you followed the advice given earlier on about componentization.

Instead what we seem to have is a system where you load Angular 1.x alongside angular 2.x, alongside a third bridging library potentially, and upgrade gradually.

That is at least one more, fairly heavy (even when GZipped) HTTP request when anybody lands on your website. It also makes everything much less simple, and I have the impression that many developers will begin to upgrade their apps, but never really see it though, leaving them in a bit of a limbo, which really bothers me.

2.

The name!


Because it has very little in common with 1.x, I feel as though it should have been given a new name.

3.

3rd party libraries.


This follows on from point 2.

When looking for 3rd party libraries, especially the less well known ones, it is going to be really unclear which libraries are compatible with 1.x, which with 2.x, and which with both!

Both frameworks are incompatible with each other, but yet a search for angular markdown editor, for example, will in the future return a mix of results for Angular 1 and 2. I can see a lot of developers finding this frustrating (especially new ones) and eventually throwing in the towel and giving up.

4.

Third party libraries (again).


Another point about third party libraries is that there are a lot of them, and many of them are really good, and essential to our apps.

I know that the team behind Angular Directives for Bootstrap are working on a version for 2.0 which is awesome, but what about other 3rd party libraries, such as TextAngular, or Angular UI Router, or the many many more?

When a really good 3rd party library is a key part of your app, but the project is a bit stagnant on Github, it makes upgrading to 2.0 that much more difficult.

5:

Routing


What is the deal with routing in the beta? I have been following the development quite closely of Angular 2.0 and I don't have a clue, can somebody bring me up to speed on that?

That is all

Just wanted to share my concerns as a regular Joe AngularJS developer.

In general I think it looks great, very excited to dive into TypeScript, and happy to see that a lot of the more cumbersome aspects of 1.x are gone, but still a few key concerns.

Cheers