From ae20f0c1b3f8ab30d3ede613cfe4ad32e3175ee9 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 6 Feb 2011 16:32:37 -0800 Subject: adding docs for angular.markup and angular.attrMarkup --- docs/angular.attrMarkup.ngdoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/angular.attrMarkup.ngdoc (limited to 'docs/angular.attrMarkup.ngdoc') diff --git a/docs/angular.attrMarkup.ngdoc b/docs/angular.attrMarkup.ngdoc new file mode 100644 index 00000000..f73a5b42 --- /dev/null +++ b/docs/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 contest of a node. + +
+angular.attrMarkup('extraClass', function(attrValue, attrName, element){
+ if (attrName == 'additional-class') {
+ element.addClass(attrValue);
+ }
+});
+
--
cgit v1.2.3