Is it possible to achieve this? If so, how can we accomplish it? Here is what I have attempted:
// Assuming domObj is a dom element
var ngObj = angular.element(domObj);
var attrNames = ngObj[0].attributes;
For example, let's consider the following dom element:
<div type="custom-type" name="dom-obj" class="dom-class" new-custom-attribute>
</div>
The desired outcome should be an array of strings:
["type", "name", "class", "new-custom-attribute"]