diff options
| author | NimaVaziri | 2013-06-20 10:25:11 -0300 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-06-20 14:40:07 +0100 |
| commit | ae8deb124636a22ab9c50a88366082555adec487 (patch) | |
| tree | 612234815eec5764e9b0617ca6c42bf0033f484e /docs/content/cookbook | |
| parent | b9dcb35e9bc64cb2f48f3a349ead66c501cbdc48 (diff) | |
| download | angular.js-ae8deb124636a22ab9c50a88366082555adec487.tar.bz2 | |
docs(cookbook/helloworld): display "World" if no name is entered
Diffstat (limited to 'docs/content/cookbook')
| -rw-r--r-- | docs/content/cookbook/helloworld.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/cookbook/helloworld.ngdoc b/docs/content/cookbook/helloworld.ngdoc index 05748231..8b693a63 100644 --- a/docs/content/cookbook/helloworld.ngdoc +++ b/docs/content/cookbook/helloworld.ngdoc @@ -10,9 +10,9 @@ } </script> <div ng-controller="HelloCntl"> - Your name: <input type="text" ng-model="name" value="World"/> + Your name: <input type="text" ng-model="name"/> <hr/> - Hello {{name}}! + Hello {{name || "World"}}! </div> </doc:source> <doc:scenario> |
