AngularJS: loss of focus power

I need to make everything on the page lose focus at a certain moment when the user edits some elements.

I found this solution to work using jquery - $(':focus').blur()

Is there a way to do something like this using angular?

+6
source share
1 answer

Along the lines

 var activeElement = document.activeElement; if (activeElement) { activeElement.blur(); } 

It is not really angular, it is pure DOM and javascript.

+7
source

All Articles