In future, we should get rid of jQuery in Angular, because it has too many dependencies and it's nearly impossible to write Unit Test in that case. Functions changing something in DOM structure should be done in directives