diff options
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(){ |
