Application Wiring: JQuery vs AngularJS

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

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.

nader dabit
nader dabit
~ 7 years ago

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!

Joel Hooks
Joel Hooks
~ 7 years ago

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.