i see angularjs highly suggested not to do any dom manipulation in the controller, only setting the state of the scope, example pulling data from ajax etc,
https://docs.angularjs.org/guide/controller
what about directives controllers with a isolated scope does it make sense to set functions on the isolated scope to do dom manipulation
example
controller:function($scope,$element){
$scope.editDom = function(){
$element.someThing();
}
}