We can use angular.element($0).controller('someDirective') to accomplish this, refer to the API: https://docs.angularjs.org/api/ng/function/angular.element.
The angular.element($0) will expose the wrapped object by angular on the element, you can also get the "scope" or "isolateScope" of the element.