News for hackers. Stuff that matters.
Re:Angular 2.0 by Hovertruck on Tuesday March 18, 2014 @12:05PM (#7422716)
"I never understood how JQuery and JS were just dumped the past 3-4 years in favor of all thse complex frameworks like AngularJS, Ember, etc..."

Well, you can't have Angular without JS so we'll focus on the point of jQuery here.

jQuery does a few things really well – so well that Angular itself uses jQuery (or jqLite by default). angular.element(selector) returns a jQuery object.

Angular also does a few things well. Code reusability and testability are much easier to achieve with Angular, in my opinion. Features like data-binding also help to reduce boilerplate code.

Re:Angular 2.0 by seabrookmx on Tuesday March 18, 2014 @12:20PM (#7422816)
> Well, you can't have Angular without JS

Well you certainly can use it without writing any JS:

https://github.com/angular/angular.dart

However, you're going to compile it to JS when you're done.

Re:Angular 2.0 by ulisesrmzroche on Tuesday March 18, 2014 @12:27PM (#7422868)
Ok, cool. if Angular returns a jQuery object then its proof that it uses jQuery quite extensively. So does Ember.
Re:Angular 2.0 by bmm6o on Tuesday March 18, 2014 @06:43PM (#7425575)
There was a similar discussion last week. What I said then was that a lot of the things you would use jQuery for have a different solution in Angular: https://news.ycombinator.com/item?id=7396016.
Re:Angular 2.0 by nobleach on Tuesday March 18, 2014 @04:03PM (#7424624)
jQlite is a pretty small subset of jQuery. Many things are left out to keep it lean. For example $(el).offset()/height()/width() etc. Mostly only the DOM methods are left as they do still need a bit of normalization across browsers.