completes ng-controller directive