mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-04 07:20:22 +00:00
docs(cookbook/helloworld): display "World" if no name is entered
This commit is contained in:
parent
b9dcb35e9b
commit
ae8deb1246
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue