AngularJS Controllers
A controller is a JavaScript object, created by a standard JavaScript object constructor. ng-controller directive defines an application controller.
You can also use an external JavaScript file like this. Just place them at the bottom of the HTML document, or most likely at the bottom of your master file.
Example of Controller Function
Controller Methods
Sources 6/what-is-an-angularjs-directive 6/what-is-an-angularjs-directive controllers.asp controllers.asp step-controllers step-controllers