Yes. The code that works with the DOM does not work in the angular controller and belongs to the directive.
Another advantage of using angular is that there are many good ready-made directives. Therefore, if you are going to reorganize things in any way, you can see if you can speed things up with other directives.
However, that sounds like a lot of work. You want to tell who pays for it and discuss the pros and cons of refactoring with them.
source share