mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(cookbook/helloworld): display "World" if no name is entered
This commit is contained in:
parent
8264d08085
commit
3621896e9d
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