completes directive for ng-controller