From your question I understand that you wanted to find elements with atrributes requiring certain condition in that case we can use $document
.
You can find more info about it here.
So coming to your requirement, you can find it by.
$document.find("[attribute-name='attribute-value')");
That will return the element object wrapped in jQuery or jqLite. But to use it you need to inject $document
into your controller. So you continue angular related operations with it.
Another approach to this is angular.element
.
angular.element.find("[attribute-name='attribute-value')");
But this will return element with wrapped raw DOM element or HTML string as a jQuery element. you can find more info about it here
I prefer to use $document
as Angular operations can be done using the first method.