aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook/helloworld.ngdoc
diff options
context:
space:
mode:
authorNimaVaziri2013-06-20 10:25:11 -0300
committerPete Bacon Darwin2013-06-20 14:39:16 +0100
commit3621896e9d7dfdba14ae0e554037868d7cbca3c8 (patch)
tree7b760a681663fc7d98785c9a7d12c558a3434e38 /docs/content/cookbook/helloworld.ngdoc
parent8264d08085adc2ab57f6598b9fc9f6e263c8b4f3 (diff)
downloadangular.js-3621896e9d7dfdba14ae0e554037868d7cbca3c8.tar.bz2
docs(cookbook/helloworld): display "World" if no name is entered
Diffstat (limited to 'docs/content/cookbook/helloworld.ngdoc')
-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>