diff options
| author | Misko Hevery | 2011-01-19 15:42:11 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-01-24 14:23:51 -0800 | 
| commit | c2f2587a79aeb77aad66f081cf924a79348a698e (patch) | |
| tree | 8f5aa4cc6e7189befb834388b2102d1eda88a975 /docs/angular.widget.ngdoc | |
| parent | 5d0d34ae72a9ca47f1b2dabda60711ad16ee9313 (diff) | |
| download | angular.js-c2f2587a79aeb77aad66f081cf924a79348a698e.tar.bz2 | |
fixed example rendering, add tests for it.
Diffstat (limited to 'docs/angular.widget.ngdoc')
| -rw-r--r-- | docs/angular.widget.ngdoc | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/angular.widget.ngdoc b/docs/angular.widget.ngdoc index 5f15398f..5942d933 100644 --- a/docs/angular.widget.ngdoc +++ b/docs/angular.widget.ngdoc @@ -4,19 +4,19 @@  @namespace Namespace for all widgets.  @description  # Overview -Widgets allow you to create DOM elements that the browser doesn't  -already understand. You create the widget in your namespace and  -assign it behavior. You can only bind one widget per DOM element  -(unlike directives, in which you can use any number per DOM  -element). Widgets are expected to manipulate the DOM tree by  +Widgets allow you to create DOM elements that the browser doesn't +already understand. You create the widget in your namespace and +assign it behavior. You can only bind one widget per DOM element +(unlike directives, in which you can use any number per DOM +element). Widgets are expected to manipulate the DOM tree by  adding new elements whereas directives are expected to only modify  element properties.  Widgets come in two flavors: element and attribute.  # Element Widget -Let's say we would like to create a new element type in the  -namespace `my` that can watch an expression and alert() the user  +Let's say we would like to create a new element type in the +namespace `my` that can watch an expression and alert() the user  with each new value.  <pre> @@ -38,7 +38,7 @@ angular.widget('my:watch', function(compileElement) {  </pre>  # Attribute Widget -Let's implement the same widget, but this time as an attribute  +Let's implement the same widget, but this time as an attribute  that can be added to any existing DOM element.  <pre>  <div my-watch="name">text</div> @@ -70,4 +70,4 @@ angular.widget('@my:watch', function(expression, compileElement) {    });  </script>  <my:time></my:time> -     
\ No newline at end of file +  | 
