Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3621896

Browse files
engl306apetebacondarwin
authored andcommitted
docs(cookbook/helloworld): display "World" if no name is entered
1 parent 8264d08 commit 3621896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/cookbook/helloworld.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
}
1111
</script>
1212
<div ng-controller="HelloCntl">
13-
Your name: <input type="text" ng-model="name" value="World"/>
13+
Your name: <input type="text" ng-model="name"/>
1414
<hr/>
15-
Hello {{name}}!
15+
Hello {{name || "World"}}!
1616
</div>
1717
</doc:source>
1818
<doc:scenario>

0 commit comments

Comments
 (0)