Angular markup transforms content of DOM elements or portions of this 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 about angular markup, see Understanding Angular Markup in the angular Developer Guide.