AngularJS Flashcards
JavaScript Patterns
Functions as abstractions
Functions to build modules
Functions to avoid global variables
Functions as Abstractions
We can use functions to create abstraction. Abstractions are useful because they provide some type of encapsulation.
Controller Basics
It’s job is to control the information we need to put onto a page.
it uses ng-controller
What are Directives?
They teach HTML new tricks!
e.g.
ng-app is a Angular built in Directive
**ng-model **is another example
Filters
{{ cust.name | uppercase }}
uppercase is the filter, creating an upper cased customer name.
MVC
Model, View, Controller
Scope
$scope is the “glue” (View Model) between a controller and a view
View
Think of it as the front page of the application…it is what is viewed
Controller
The controller drives the app and controlles utlimatly what data gets bound into the view.
Key Players in AngularJS