•Directives can specify a Controller using the “controller” property
•Syntax “Controller as “ helps namespace the scope
•Syntax “Controller as” injects scope, binding the Controller to the current scope
AngularJS - Creating a Custom Controller for A Directive
AngularJS - Creating a Custom Controller for A Directive
778
5/5/2017 4:54:07 AM
http://thingswelearned.com/article/show/angularjs-creating-a-custom-controller-for-a-directive