aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook
diff options
context:
space:
mode:
authorNimaVaziri2013-06-20 10:25:11 -0300
committerPete Bacon Darwin2013-06-20 14:40:07 +0100
commitae8deb124636a22ab9c50a88366082555adec487 (patch)
tree612234815eec5764e9b0617ca6c42bf0033f484e /docs/content/cookbook
parentb9dcb35e9bc64cb2f48f3a349ead66c501cbdc48 (diff)
downloadangular.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.ngdoc4
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>