angular.attrMarkup

Attribute markup allows you to modify the state of an attribute's text.

Attribute markup extends the Angular complier in a way similar to angular.markup, which allows you to modify the content of a node.

The most prominent example of an attribute markup in Angular is the built-in double curly markup which is a shorthand for ng:bind-attr.

Example

  angular.attrMarkup('newAttrMarkup', function(attrValue, attrName, element){
    //tranformation code
  });

For more information about Angular attribute markup, see Understanding Angular Markup in the Angular Developer Guide.