I am having trouble with angularjs directives finding child DOM elements with the injected angular element.
For example I have a directive like so:
find() - Limited to lookups by tag name you can see more information https://docs.angularjs.org/api/ng/function/angular.element
find()
Also you can access by name or id or call please following example:
angular.element(document.querySelector('#txtName')).attr('class', 'error');