Angular Js
Angular Js
Mendel Rosenblum
● Widely used framework (Angular 1 - 2009) with a major rewrite coming out
(Angular 2)
○ CS142 will use Angular 1
Directive Allows developer to extend HTML with own elements and attributes (reusable pieces)
Scope Context where the model data is stored so that templates and controllers can access
Data Binding Syncing of the data between the Scope and the HTML (two ways)
Note: replaced
with value of
<
or to fetch existing module:
Consider:
● Use dash:
● Capitalize first letter of each word:
AngularJS solution: You can use either, Angular will map them to the same thing.
Example: and
CS142 Lecture Notes - AngularJS
ngRepeat - Directive for looping in templates
● - Looping for DOM element creation ( etc.)
Note: will create scope/controllers when going to true, exit going to false
● tag
● Example:
1,070,726 bytes
148,199 bytes
53,281 bytes