Quick tip
Although AngularJS controllers can be used to manipulate the DOM, creating custom directives with AngularJS is the typical method used. Directives can be placed in the HTML view and a matching set of JavaScript is all it takes to make a directive function properly.