When working with AngularJS, I encounter an error when trying to use querySelector.
angular.element(angular.element(e).querySelector('.open')).removeClass('open');
However, if I switch to using:
angular.element(angular.element(e).find('.open')).removeClass('open');
The code works perfectly fine without any issues.
The specific error message that is thrown:
TypeError: angular.element(...).querySelector is not a function