History & Future • Originally created in 2010 by Misko Hevery and Adam Abrons, now run by the Google team. • Everything should be a component - see Angular v2.0
Why use AngularJS? • Helps with organization of JavaScript • Works well with other libraries (but requires none of them) • Ability to create extremely fast websites • It is easy to write tests for - because of modules
Model The model is made up of plain JS objects. No need for inheriting or extending. We also don't need to use any special getter/setter methods to access it. This means that we write less boilerplate code.
ViewModel It is an object that provides specific data and methods to a specific view. $scope is just a regular JS object with a small API created to detect changes to its state.
Directives • This is our "Declaritive" part • A directive is a marker on a HTML tag that tells AngularJS to run or reference some JS code. • ng-repeat • ng-click • ng-show • ng-class