diff options
| author | Igor Minar | 2011-02-06 16:32:37 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-02-07 23:55:02 -0800 |
| commit | ae20f0c1b3f8ab30d3ede613cfe4ad32e3175ee9 (patch) | |
| tree | b05724af90e5805e43dfa1cc9a41b84155c8b30d /docs/angular.attrMarkup.ngdoc | |
| parent | 9f6c5db2a6ed10d3152fcb4aed8733043833362b (diff) | |
| download | angular.js-ae20f0c1b3f8ab30d3ede613cfe4ad32e3175ee9.tar.bz2 | |
adding docs for angular.markup and angular.attrMarkup
Diffstat (limited to 'docs/angular.attrMarkup.ngdoc')
| -rw-r--r-- | docs/angular.attrMarkup.ngdoc | 15 |
1 files changed, 15 insertions, 0 deletions
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. + +<pre> +angular.attrMarkup('extraClass', function(attrValue, attrName, element){ + if (attrName == 'additional-class') { + element.addClass(attrValue); + } +}); +</pre> |
