fix(docs): remove ngModelInstant from all examples

just fixing leftover code after the removal of ngModelInstant
This commit is contained in:
Igor Minar 2012-04-04 15:56:12 -07:00
parent 85776c0d37
commit fdf17d729f
8 changed files with 18 additions and 18 deletions

View file

@ -38,7 +38,7 @@ the following example.
} }
</script> </script>
<div ng-controller="Ctrl1"> <div ng-controller="Ctrl1">
Hello <input ng-model='name' ng-model-instant> <hr/> Hello <input ng-model='name'> <hr/>
&ltspan ng:bind="name"&gt <span ng:bind="name"></span> <br/> &ltspan ng:bind="name"&gt <span ng:bind="name"></span> <br/>
&ltspan ng_bind="name"&gt <span ng_bind="name"></span> <br/> &ltspan ng_bind="name"&gt <span ng_bind="name"></span> <br/>
&ltspan ng-bind="name"&gt <span ng-bind="name"></span> <br/> &ltspan ng-bind="name"&gt <span ng-bind="name"></span> <br/>

View file

@ -38,9 +38,9 @@ allow a user to enter data.
<input type="text" ng-model="user.name" required/> <br><br> <input type="text" ng-model="user.name" required/> <br><br>
<label>Address:</label><br> <label>Address:</label><br>
<input type="text" ng-model="user.address.line1" ng-model-instant size="33" required> <br> <input type="text" ng-model="user.address.line1" size="33" required> <br>
<input type="text" ng-model="user.address.city" ng-model-instant size="12" required>, <input type="text" ng-model="user.address.city" size="12" required>,
<input type="text" ng-model="user.address.state" ng-model-instant <input type="text" ng-model="user.address.state"
ng-pattern="state" size="2" required> ng-pattern="state" size="2" required>
<input type="text" ng-model="user.address.zip" size="5" <input type="text" ng-model="user.address.zip" size="5"
ng-pattern="zip" required><br><br> ng-pattern="zip" required><br><br>
@ -54,7 +54,7 @@ allow a user to enter data.
<option>pager</option> <option>pager</option>
<option>IM</option> <option>IM</option>
</select> </select>
<input type="text" ng-model="contact.value" ng-model-instant required/> <input type="text" ng-model="contact.value" required>
[ <a href="" ng-click="removeContact(contact)">X</a> ] [ <a href="" ng-click="removeContact(contact)">X</a> ]
</div> </div>
<hr/> <hr/>

View file

@ -65,7 +65,7 @@ This example demonstrates angular's two-way data binding:
<doc:example> <doc:example>
<doc:source> <doc:source>
Your name: <input type="text" ng-model="yourname" ng-model-instant placeholder="World"> Your name: <input type="text" ng-model="yourname" placeholder="World">
<hr> <hr>
Hello {{yourname || 'World'}}! Hello {{yourname || 'World'}}!
</doc:source> </doc:source>

View file

@ -106,7 +106,7 @@
<div id="sidebar"> <div id="sidebar">
<input type="text" ng:model="search" id="search-box" placeholder="search the docs" <input type="text" ng:model="search" id="search-box" placeholder="search the docs"
tabindex="1" accesskey="s" ng:model-instant> tabindex="1" accesskey="s">
<ul id="content-list" ng:class="sectionId" ng:cloak> <ul id="content-list" ng:class="sectionId" ng:cloak>
<li ng:repeat="page in pages | filter:search" ng:class="getClass(page)"> <li ng:repeat="page in pages | filter:search" ng:class="getClass(page)">

View file

@ -26,7 +26,7 @@
} }
</script> </script>
<div ng-controller="Ctrl"> <div ng-controller="Ctrl">
Enter name: <input type="text" ng-model="name" ng-model-instant><br> Enter name: <input type="text" ng-model="name"><br>
Hello <span ng-bind="name"></span>! Hello <span ng-bind="name"></span>!
</div> </div>
</doc:source> </doc:source>
@ -122,8 +122,8 @@ var ngBindHtmlDirective = ['$sanitize', function($sanitize) {
} }
</script> </script>
<div ng-controller="Ctrl"> <div ng-controller="Ctrl">
Salutation: <input type="text" ng-model="salutation" ng-model-instant><br> Salutation: <input type="text" ng-model="salutation"><br>
Name: <input type="text" ng-model="name" ng-model-instant><br> Name: <input type="text" ng-model="name"><br>
<pre ng-bind-template="{{salutation}} {{name}}!"></pre> <pre ng-bind-template="{{salutation}} {{name}}!"></pre>
</div> </div>
</doc:source> </doc:source>

View file

@ -41,7 +41,7 @@
{name:'Adam', phone:'555-5678'}, {name:'Adam', phone:'555-5678'},
{name:'Julie', phone:'555-8765'}]"></div> {name:'Julie', phone:'555-8765'}]"></div>
Search: <input ng-model="searchText" ng-model-instant> Search: <input ng-model="searchText">
<table id="searchTextResults"> <table id="searchTextResults">
<tr><th>Name</th><th>Phone</th><tr> <tr><th>Name</th><th>Phone</th><tr>
<tr ng-repeat="friend in friends | filter:searchText"> <tr ng-repeat="friend in friends | filter:searchText">
@ -50,9 +50,9 @@
<tr> <tr>
</table> </table>
<hr> <hr>
Any: <input ng-model="search.$" ng-model-instant> <br> Any: <input ng-model="search.$"> <br>
Name only <input ng-model="search.name" ng-model-instant><br> Name only <input ng-model="search.name"><br>
Phone only <input ng-model="search.phone" ng-model-instant><br> Phone only <input ng-model="search.phone"å><br>
<table id="searchObjResults"> <table id="searchObjResults">
<tr><th>Name</th><th>Phone</th><tr> <tr><th>Name</th><th>Phone</th><tr>
<tr ng-repeat="friend in friends | filter:search"> <tr ng-repeat="friend in friends | filter:search">

View file

@ -23,7 +23,7 @@
} }
</script> </script>
<div ng-controller="Ctrl"> <div ng-controller="Ctrl">
<input type="number" ng-model="amount" ng-model-instant> <br> <input type="number" ng-model="amount"> <br>
default currency symbol ($): {{amount | currency}}<br> default currency symbol ($): {{amount | currency}}<br>
custom currency identifier (USD$): {{amount | currency:"USD$"}} custom currency identifier (USD$): {{amount | currency:"USD$"}}
</div> </div>
@ -74,7 +74,7 @@ function currencyFilter($locale) {
} }
</script> </script>
<div ng-controller="Ctrl"> <div ng-controller="Ctrl">
Enter number: <input ng-model='val' ng-model-instant><br> Enter number: <input ng-model='val'><br>
Default formatting: {{val | number}}<br> Default formatting: {{val | number}}<br>
No fractions: {{val | number:0}}<br> No fractions: {{val | number:0}}<br>
Negative number: {{-val | number:4}} Negative number: {{-val | number:4}}
@ -468,7 +468,7 @@ var uppercaseFilter = valueFn(uppercase);
} }
</script> </script>
<div ng-controller="Ctrl"> <div ng-controller="Ctrl">
Snippet: <textarea ng-model="snippet" ng-model-instant cols="60" rows="3"></textarea> Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
<table> <table>
<tr> <tr>
<td>Filter</td> <td>Filter</td>

View file

@ -31,7 +31,7 @@
} }
</script> </script>
<div ng-controller="Ctrl"> <div ng-controller="Ctrl">
Limit {{numbers}} to: <input type="integer" ng-model="limit" ng-model-instant> Limit {{numbers}} to: <input type="integer" ng-model="limit">
<p>Output: {{ numbers | limitTo:limit }}</p> <p>Output: {{ numbers | limitTo:limit }}</p>
</div> </div>
</doc:source> </doc:source>