Controllers should not have to do DOM manipulation. I need to understand why you're doing that, but this is not respecting the Angular guidelines.