Where can we implement the DOM manipulation in AngularJS?

Manipulation of DOM is in directives and apart from this it should not exist in the controller’s services or anywhere else.