From c35b0a7907de1535269876668c345ce944681804 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 6 Jun 2011 22:02:30 -0700 Subject: yet another docs batch --- src/markups.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'src/markups.js') 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 ``. + * + * Create custom markup like this: + * + *
+ * angular.markup('newMarkup', function(text, textNode, parentElement){
+ * //tranformation code
+ * });
+ *
+ *
+ * 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:
+ *
+ *
+ * angular.attrMarkup('newAttrMarkup', function(attrValue, attrName, element){
+ * //tranformation code
+ * });
+ *
+ *
+ * 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;
--
cgit v1.2.3