How do I “think in AngularJS” if I have a jQuery background?
stackoverflow.com
stackoverflow.com
I've developed enough Rails apps to think architecture-first...but thinking back in my jQuery only days, the OP's question seems like it'd be a very common one among jQuery-only-front-end developers...and the top-answer is excellent: if you don't include jQuery, then you're forced to think about the architecture, and you'll be better off for it as a developer.
I use isotope with angular and have written directives to support it. I haven't written it up, but If you're interested, I can share some of that with you.
I was leaning toward learning Ember, but this post makes me really curious about Angular. In particular, the ease of testing has my interest piqued. Is testing as simple/easy with Ember? I know that unlike Angular, Ember doesn't have DI as a core feature. Either way, I should probably just flip a coin and start learning!
> I'm very glad to see that this answer hasn't been closed as not constructive!
Don't jinx it!I like angular but "angular architect" rolls off the tongue too easily.
Personally, I found Angular's concepts a bit foreign and hard to grasp while Ember was much more straight-forward, but that's just a personal opinion.
I thought that JavaScript-based frameworks are often not very compatible with screen reading technologies, but have not investigated what advances have been made for the blind in this area.
http://stackoverflow.com/q/15318661/59087
http://juicystudio.com/article/making-ajax-work-with-screen-...
Cool post, thanks!
It has an "architecture astronaut" feel (explicitly eschewing graceful degradation!), which most web pages don't need.
I'd be interested in "controller" plugins for jQuery, so I can opt into upgrading from trigger->DOM to trigger->controller->DOM as my app grows.
Angular is pretty cool, but it's hardly the only neat way of seperating and offloading view detail work.
And jQuery is just a (much) nicer-than-native DOM/browser API. It doesn't provide an application architecture or data bound view handling layer because that's not what it's for, and it no more forces an application style than your text editor does.
This isn't to say that Angular isn't nice for projects short of Gmail's scale (I would/am considering it for some small scale stuff), it just doesn't make much sense to say jQuery forces people a direction by not providing features that aren't really part of its purpose.
I, for one, constantly find myself thinking along the same lines whenever I try out a new language.
Part 1: http://www.youtube.com/watch?v=P76Vbsk_3J0
Part 2: http://www.youtube.com/watch?v=hb3rurFxrZ8
Slides: http://www.slideshare.net/adorepump/clojure-an-introduction-...
I'd also recommend http://egghead.io for some in depth walk throughs.
The main thing I've learnt is that Angular is elaborate. Each time I get my head around something, I realise that my previous understanding was utterly wrong.
The docs are sufficiently vague that I spend a lot of time looking for secondary sources or just reading the code directly. Sometimes the code is self-documenting. And sometimes it's neutron-star dense.
But what I'm seeing, I really like. I think that directives are a big part of the magic -- building the HTML you wish existed and then writing your app in that domain-specific HTML.
It's an excellent resource for those of us trying get our heads around Angular's woeful documentation:
Website: http://www.thinkster.io/
HN Submission: https://news.ycombinator.com/item?id=6072383
Angular reduces the amount of boilerplate code you need to build nice applications immensely, but to get to that point (and beyond two way binding hello world demos) there's a nearly vertical learning curve.
Once you near the top of that curve though, apps just kind of come together like magic. It's really neat.
Angular expressions are. It's a big difference.
IMO, it makes writing javascript-only applications (like all the internal tools for my company) much easier. It bugged me to look at a given view and not know what happened when something was clicked, or what the class name for an element needed to be to get the right behavior. Angular apps feel like writing a desktop app, which is great.
I'm thinking it makes sense to do my next project in those technologies since that way I can avoid setting up a hosting platform entirely and not even pay for hosting? Does that seem like a good idea? (It's going to be a way people can pay bitcoins to other people to read books)
I'll message you when I make it all publicly available.
I thought you could host your HTML file on firebase too? Why do you need S3?
Website: http://firereader.io/app/#/demo
HN Submission: https://news.ycombinator.com/item?id=6053901
I want to get a feel for what a simple app looks like.
https://www.firebase.com/blog/2013-03-29-firebase-bindings-f...
and
https://github.com/firebase/angularFire
which make it relatively simple to wire up your angular model to firebase.
One of the best advice I read was not to use jquery with angular.js, and I couldnt agree more.
My question now is, why would I ever want to use jquery and angular.js together? I can do everything I needed to do before in jquery with angular.js