Is there a way to retrieve the controller instance connected with a directive within the link function?
return {
template: template,
controller: controller,
controllerAs: 'myCtrl', // What is the method for accessing the controller instance from the link function?
restrict: 'E',
replace: true,
link: function(scope, element, attrs) {}
};