diff options
| author | Misko Hevery | 2011-09-08 13:56:29 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:45 -0700 | 
| commit | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (patch) | |
| tree | 91f70bb89b9c095126fbc093f51cedbac5cb0c78 /docs/content/cookbook/helloworld.ngdoc | |
| parent | df6d2ba3266de405ad6c2f270f24569355706e76 (diff) | |
| download | angular.js-4f78fd692c0ec51241476e6be9a4df06cd62fdd6.tar.bz2 | |
feat(forms): new and improved forms
Diffstat (limited to 'docs/content/cookbook/helloworld.ngdoc')
| -rw-r--r-- | docs/content/cookbook/helloworld.ngdoc | 13 | 
1 files changed, 10 insertions, 3 deletions
| diff --git a/docs/content/cookbook/helloworld.ngdoc b/docs/content/cookbook/helloworld.ngdoc index 8018a399..9562aaff 100644 --- a/docs/content/cookbook/helloworld.ngdoc +++ b/docs/content/cookbook/helloworld.ngdoc @@ -5,9 +5,16 @@  <doc:example>   <doc:source> -  Your name: <input type="text" name="name" value="World"/> -  <hr/> -  Hello {{name}}! +  <script> +    function HelloCntl(){ +      this.name = 'World'; +    } +  </script> +  <div ng:controller="HelloCntl"> +    Your name: <input type="text" ng:model="name" value="World"/> +    <hr/> +    Hello {{name}}! +  </div>   </doc:source>   <doc:scenario>     it('should change the binding when user enters text', function(){ | 
