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

Commit 3436c02

Browse files
committed
docs(guide/started): fix examples
1 parent 6a8749e commit 3436c02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docs/content/misc/started.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ This example demonstrates angular's two-way data binding:
6565

6666
<doc:example>
6767
<doc:source>
68-
Your name: <input type="text" ng-model="yourname" value="World"/>
69-
<hr/>
70-
Hello {{yourname}}!
68+
Your name: <input type="text" ng-model="yourname" ng-model-instant placeholder="World">
69+
<hr>
70+
Hello {{yourname || 'World'}}!
7171
</doc:source>
7272
</doc:example>
7373

7474
After the refresh, the page should look something like this:
7575

76-
<img class="left" src="img/helloworld_2way.png" border="1" />
76+
<img class="left" src="img/helloworld_2way.png" border="1" >
7777

7878
These are some of the important points to note from this example:
7979

0 commit comments

Comments
 (0)