Angular markup transforms the content of DOM elements or portions of the content into other text or DOM elements for further compilation.
Markup extensions do not themselves produce linking functions. Think of markup as a way to
produce shorthand for a widget
or a directive
.
The most prominent example of a markup in Angular is the built-in, double curly markup
{{expression}}
, which is shorthand for <span ng:bind="expression"></span>
.
Create custom markup like this:
angular.markup('newMarkup', function(text, textNode, parentElement){ //tranformation code });
For more information, see Understanding Angular Markup in the Angular Developer Guide.