Index:Getting started with AngularJSCreating an AngularJS ControllerThe AngularJS $scope is not the MVC ModelUsing repeating elements in AngularJSFiltering the data in an AngularJS ngRepeat elementUsing the AngularJS FormController to control form submissionCreating an AngularJS DirectiveUsing the DOM in an AngularJS applicationTo SPA or not to SPA   Even though you should not manipulate the DOM in an AngularJS application but leave that up to AngularJS itself to do there are certainly places where you will need to interact with it. For example you might want to react to events and do something in reusable manner. Sure you can use the ngClick directive to react to a click but there are cases where you need to react to a click and don't want to repeat the same click handler each time. The place to add these kind of interactive DOM related code in AngularJS is in a directive and not in a controller. In fact a controller should never be aware of the DOM  at all to keep it testable. In the previous blog post I showed how to use a directive with a template to make our HTML smaller...