ga-wdi-exercises / shaping-up-with-angular

0 stars 20 forks source link

Shaping up with Angular (Jonathan Polakoff) #99

Closed jdpolakoff closed 7 years ago

jdpolakoff commented 7 years ago

*Modules are used to create a separation of concerns in our JavaScript. They help keep our code encapsulated in the right place.

*Controllers are where we define our application's values and functions. Controllers can, for example, help us get data stored in a JavaScript variable onto the page.

*Data binding is when expressions are re-evaluated each time a certain property changes. It helps create interactivity and dynamic reactions to user activity.

*Directives are used to bind the JavaScript behavior to an HTML tag. The can help create conditional behavior. For example, only show a button if a "canPurchase" key evaluates to "true."

*Angular expressions are used to help render Angular code or expressions into strings and numbers on the view.

*The view model is the data that is presented to the user.