The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Application Wiring: JQuery vs AngularJS

Application Wiring: JQuery vs AngularJS

5:08
You can build single page applications with JQuery and/or AngularJS. In this lesson, John will look at some of the fundamental differences between the two approaches.
Watch this lesson now
Avatar
egghead.io

You can build single page applications with JQuery and/or AngularJS. In this lesson, John will look at some of the fundamental differences between the two approaches.

Avatar
nader dabit

Out of curiosity, why not reference the $scope from within the controller for calling the method, instead of the way it was done in the tutorial? Is one way better than the other or is there a reason, thanks!

Avatar
Joel

This is the "controller as" syntax. Generally recommended since 1.2. One advantage is that it makes the controller more like a "plain old javascript" object. One lest dependency to fake for testing.

In reply to nader dabit
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?