r/javascript • • Mar 18 '14

Angular 2.0

http://blog.angularjs.org/2014/03/angular-20.html
104 Upvotes

40 comments sorted by

18

u/x-skeww Mar 18 '14

Note: This isn't a release announcement. It's more of an outline or roadmap with a short Q&A at the end.

Some of this stuff was mentioned in the ngconf keynote.

https://www.youtube.com/user/ngconfvideos/videos

-17

u/cran Mar 18 '14

Delete and repost please.

8

u/brtt3000 Mar 18 '14

Seriously, what the hell is this?

http://i.imgur.com/bcNb9Q6.png

Why is there a menu OVER a main part of the scrollbar?

Whoever made this failed at basic UIX and need to be spanked (in a bad way)

1

u/x-skeww Mar 18 '14

Yea, Blogger sucks big dinosaur balls.

0

u/[deleted] Mar 18 '14

[deleted]

3

u/greyscales Mar 18 '14

Not a rendering error, the element is positioned fixed with a higher z-index.

0

u/[deleted] Mar 18 '14

[deleted]

3

u/greyscales Mar 18 '14

The scrollbar comes from a div with overflow scroll.

5

u/mobcat40 Mar 18 '14

Oh damn 2.0 already? Time to take a second look at Angular, there were so many lectures at this year's Fluent conference on it.

6

u/x-skeww Mar 18 '14

That isn't a release announcement. I guess I should have editorialized the title a bit to make this more clear.

12

u/a3k Mar 18 '14

All code in Angular 2 is already being written in ES6. As ES6 doesn’t run in browsers today, we’re using the Traceur compiler to generate the nice ES5 that runs everywhere.

I like how you guys keep moving forward.

13

u/jij Mar 18 '14

We must move forward, not backward; upward, not forward; and always twirling, twirling, twirling towards freedom!

3

u/mmouth Mar 18 '14

I love Angular and everything about this announcement sounds awesome. I can't wait to see 2.0!

2

u/dylanyo Mar 18 '14

I build apps for real clients using older browsers. Fuck me, right?

6

u/[deleted] Mar 18 '14

real clients

as opposed to imaginary ones?

1

u/dylanyo Mar 18 '14

Yeah, imaginary clients who don't require you to support IE10.

5

u/[deleted] Mar 18 '14

Considering this probably won't even be released for a year or two, I think making this out to be a huge issue is a bit shortsighted

3

u/kadjar Mar 18 '14

This is how it works. New tools come out built for evergreen software. As they become increasingly popular and more things rely upon them, pressure builds for older systems to upgrade. Without that pressure, many never would.

1

u/[deleted] Mar 18 '14

Just use the current version, it is fully functional.

1

u/dylanyo Mar 18 '14

Yeah, that's what we're doing. Just a bit shocking to see that it won't support what I believe will still be a large portion of the browser market.

2

u/x-skeww Mar 18 '14

Yes, in the future they won't support browsers which are currently still significant.

That's how it should be, really.

jQuery 2.0 is similar, for example. It doesn't support IE8 and below.

1

u/dylanyo Mar 18 '14

Yes it does seem odd.

2

u/x-skeww Mar 18 '14

"future" ... "currently"

In the past, IE5 was relevant. Do you currently support it?

2

u/dylanyo Mar 18 '14

My point was, if this comes out within a year, ie10 will likely still have a significant market share, yet won't be supported by angular. And I am surprised by that. You are the only one talking in two different tenses. I was always referring to the future.

2

u/x-skeww Mar 18 '14

if this comes out within a year, ie10 will likely still have a significant market share, yet won't be supported by angular.

The 1.x branch will stay around for a while. Just like jQuery's 1.x branch.

You can continue to use it til the end of time if you want.

1

u/dylanyo Mar 19 '14

Yes I understand that.

2

u/x-skeww Mar 19 '14

So, what's the problem then?

1

u/[deleted] Mar 19 '14

Correct me if I'm wrong, but isn't ie10 on auto upgrade to ie11 on all platforms it's supported? Why would anyone end up with 10 in a years time?

2

u/dylanyo Mar 19 '14

I was just going from the angular blog post. It mentions IE11 as being evergreen so I assumed IE10 was not. After a google search it appears that it will actually depend on your OS.

1

u/[deleted] Mar 19 '14

So good news for those on windows 7 or higher if I'm reading correctly?

2

u/dukerutledge Mar 19 '14

This seems to be the attitude at google. I've encountered many googlers that don't understand that people outside mountain view don't upgrade their tech every year or two.

1

u/tomByrer Mar 19 '14

My post on Google+: But mobile browsers < 'evergreen' 20% are still stuck on Android 2.3, many might not update above Android 4.2, 14% are still on iOS6, & I suspect the large iPad2 userbase will be left behind in iOS8. http://androidandme.com/2014/01/news/google-posts-fresh-android-distribution-stats-jelly-bean-and-kitkat-usage-on-the-rise/ https://developer.apple.com/support/appstore/

1

u/tomByrer Mar 19 '14

Brad Green's reply:

we're trying to build a framework for the browsers of 2015 and beyond. If the market is still stuck where it is today, I'll have to eat my words.:)

3

u/willfe42 Mar 18 '14

I absolutely love working with Angular. I'm using it right now on a project and it's so fast and flexible. Combining Angular with websockets (I'm using socket.io for that) has so far produced an unbelievably fast and responsive web application.

I'm eager to see how Angular 2.0 turns out. The list of improvements looks great!

1

u/[deleted] Mar 18 '14

The posibility of using the same code for serverside redering would be awesome. no need to bootstrap angular, load the data and construct the dom, a completed dom could be delivered from the server directly.

3

u/Smallpaul Mar 18 '14

What section of the article are you referring to?

1

u/kadjar Mar 18 '14

Try PhantomJS

2

u/dukerutledge Mar 19 '14

Now you have two problems.

1

u/communomancer Mar 19 '14

Or React.js

1

u/mechanicalocean Mar 18 '14

Really looking forward to this. Especially excited about the Modular section.

1

u/ztbrown Mar 18 '14

Angular should replace its router with ui-router. Why reinvent the wheel?

1

u/ZeroMomentum Mar 19 '14

I think because of "Integration with authentication and authorization". I don't think ui-router does that at all right?

Also Ui-router basically has the

$stateProvider.state(/*.....*/)

From what I understand and have done is use a namespace key for the states. So I think the google angular team is trying to have this whole implementation tied to the set of controllers? Since states lineage and controllers are kind of inherently tied.