Live data from Hacker News

JQuery vs. AngularJS: A Comparison and Migration Walkthrough

airpair.com

11–17 of 17 posts

Re: JQuery vs. AngularJS: A Comparison and Migration Walkthrough

#11
post #6

I don't understand. The comparison breaks down in the very first example - where is the example of Angular's excellent DOM abstraction and compatibility magic? "And then I refactored something that was bad to make it faster." There's also a typo in the jQuery example. There's no comparison. jQuery provides way more for actual DOM magic than Angular does. > As I have outlined in this article, AngularJS can do everythi…

These articles are essentially clickbait. The Angular docs themselves say "this is not a low-level framework, if you need that, use something such as jQuery"!

Re: JQuery vs. AngularJS: A Comparison and Migration Walkthrough

#12
post #10
post #8

> 1 Framework Comparison jQuery is a library, not a framework!

Don't several frameworks use jQuery?

Yeah, precisely because it is a library and can be used with many different frameworks.

Lately I was convinced that all frameworks should die and be rewritten as reusable and - important - interoperable libraries. jQuery is a good example of such a library.

Re: JQuery vs. AngularJS: A Comparison and Migration Walkthrough

#13
One of the annoying sticking points with Angular for me has been that it really doesn't play nicely with jQuery or jQuery-derived components (like a lot of the awesome stuff in the jQuery-UI package).

Like, sure, I get it, I get it, you're a framework for doing all this high-brow enterprise single-page app stuff, you own the DOM, you have DI patterns for testability, yadda yadda yadda...why the hell is it so hard to use, say, flotr2 to draw charts with you?

Why does your documentation not show the (common!) example of wrapping working and existing jQuery (or AJAX, or whatever) libraries into directives/services in The One True Angular Way?

Sure, polymer and web components and all that happy horseshit will make things better--years from now. Some of us are trying to deliver functionality today. It's like the devs/community don't even acknowledge that this is a problem.

Re: JQuery vs. AngularJS: A Comparison and Migration Walkthrough

#14
post #6

I don't understand. The comparison breaks down in the very first example - where is the example of Angular's excellent DOM abstraction and compatibility magic? "And then I refactored something that was bad to make it faster." There's also a typo in the jQuery example. There's no comparison. jQuery provides way more for actual DOM magic than Angular does. > As I have outlined in this article, AngularJS can do everythi…

Agreed 100%. This would be hugely helpful for me (and others I hope): I get where Angular shines (heavy-lifting for single-page apps). The part I'm missing is how to do the day-to-day jQuery stuff in Angular. Change CSS classes on button clicks. Hide & show elements on drop-down changes. Etc.

In my mind, Angular is still "for building a rich app", whereas jQuery is "for adding a bit of magic to an otherwise static page" (I know that's not really true, but it's what I use it for.)

I'd love to get fluency in Angular - or at least a great understanding of it - for that latter case. Is it usable for the day-to-day "magic" bits of an otherwise normal webpage? (Other than the 2-way data binding example which I see all the time and understand).

Re: JQuery vs. AngularJS: A Comparison and Migration Walkthrough

#15
post #10

Earlier quoted context omitted.

Don't several frameworks use jQuery?

Yeah, precisely because it is a library and can be used with many different frameworks. Lately I was convinced that all frameworks should die and be rewritten as reusable and - important - interoperable libraries. jQuery is a good example of such a library.

I am very reluctant to commit to a framework. But I like using jQuery.
Post reply on HN