aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/api/angular.attrMarkup.ngdoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/api/angular.attrMarkup.ngdoc')
-rw-r--r--docs/content/api/angular.attrMarkup.ngdoc15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/content/api/angular.attrMarkup.ngdoc b/docs/content/api/angular.attrMarkup.ngdoc
new file mode 100644
index 00000000..aad20866
--- /dev/null
+++ b/docs/content/api/angular.attrMarkup.ngdoc
@@ -0,0 +1,15 @@
+@workInProgress
+@ngdoc overview
+@name angular.attrMarkup
+
+@description
+Attribute markup extends the angular compiler in a very similar way as {@link angular.markup} except
+that it allows you to modify the state of the attribute text rather then the content of a node.
+
+<pre>
+angular.attrMarkup('extraClass', function(attrValue, attrName, element){
+ if (attrName == 'additional-class') {
+ element.addClass(attrValue);
+ }
+});
+</pre>