aboutsummaryrefslogtreecommitdiffstats
path: root/src/markups.js
diff options
context:
space:
mode:
authorIgor Minar2011-06-06 22:02:30 -0700
committerIgor Minar2011-06-06 23:10:30 -0700
commitc35b0a7907de1535269876668c345ce944681804 (patch)
treea3ba548369ca65db790809197196ae946cc93a18 /src/markups.js
parent805bb5bb6e5842a5760976a446074d553609f5b6 (diff)
downloadangular.js-c35b0a7907de1535269876668c345ce944681804.tar.bz2
yet another docs batch
Diffstat (limited to 'src/markups.js')
-rw-r--r--src/markups.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/markups.js b/src/markups.js
index 2a9b1c3e..1f2ec8a6 100644
--- a/src/markups.js
+++ b/src/markups.js
@@ -1,3 +1,52 @@
+/**
+ * @workInProgress
+ * @ngdoc overview
+ * @name angular.markup
+ * @description
+ *
+ * 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 {@link angular.widget widget} or a {@link angular.directive directive}.
+ *
+ * The most prominent example of an markup in angular is the built-in double curly markup
+ * `{{expression}}`, which is a shorthand for `<span ng:bind="expression"></span>`.
+ *
+ * Create custom markup like this:
+ *
+ * <pre>
+ * angular.markup('newMarkup', function(text, textNode, parentElement){
+ * //tranformation code
+ * });
+ * </pre>
+ *
+ * For more information about angular markup, see {@link guide/dev_guide.compiler.markup
+ * Understanding Angular Markup} in the angular Developer Guide.
+ */
+
+/**
+ * @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.
+ *
+ * Create custom attribute markup like this:
+ *
+ * <pre>
+ * angular.attrMarkup('newAttrMarkup', function(attrValue, attrName, element){
+ * //tranformation code
+ * });
+ * </pre>
+ *
+ * For more information about angular attribute markup, see {@link guide/dev_guide.compiler.markup
+ * Understanding Angular Markup} in the angular Developer Guide.
+ */
+
function parseBindings(string) {
var results = [];
var lastIndex = 0;