We’ve used a few directives so far -
ng-src. What can we generalize about directives?
Directives bind behavior to HTML elements. When the app runs, AngularJS walks through each HTML element looking for directives. When it finds one, AngularJS triggers that behavior (like attaching a scope or looping through an array).
In the controller, add two of your favorite books to the
The view will update as the
ng-repeat loops the new elements in the