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

Commit fdf17d7

Browse files
committed
fix(docs): remove ngModelInstant from all examples
just fixing leftover code after the removal of ngModelInstant
1 parent 85776c0 commit fdf17d7

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ the following example.
3838
}
3939
</script>
4040
<div ng-controller="Ctrl1">
41-
Hello <input ng-model='name' ng-model-instant> <hr/>
41+
Hello <input ng-model='name'> <hr/>
4242
&ltspan ng:bind="name"&gt <span ng:bind="name"></span> <br/>
4343
&ltspan ng_bind="name"&gt <span ng_bind="name"></span> <br/>
4444
&ltspan ng-bind="name"&gt <span ng-bind="name"></span> <br/>

docs/content/cookbook/form.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ allow a user to enter data.
3838
<input type="text" ng-model="user.name" required/> <br><br>
3939

4040
<label>Address:</label><br>
41-
<input type="text" ng-model="user.address.line1" ng-model-instant size="33" required> <br>
42-
<input type="text" ng-model="user.address.city" ng-model-instant size="12" required>,
43-
<input type="text" ng-model="user.address.state" ng-model-instant
41+
<input type="text" ng-model="user.address.line1" size="33" required> <br>
42+
<input type="text" ng-model="user.address.city" size="12" required>,
43+
<input type="text" ng-model="user.address.state"
4444
ng-pattern="state" size="2" required>
4545
<input type="text" ng-model="user.address.zip" size="5"
4646
ng-pattern="zip" required><br><br>
@@ -54,7 +54,7 @@ allow a user to enter data.
5454
<option>pager</option>
5555
<option>IM</option>
5656
</select>
57-
<input type="text" ng-model="contact.value" ng-model-instant required/>
57+
<input type="text" ng-model="contact.value" required>
5858
[ <a href="" ng-click="removeContact(contact)">X</a> ]
5959
</div>
6060
<hr/>

docs/content/misc/started.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ 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" ng-model-instant placeholder="World">
68+
Your name: <input type="text" ng-model="yourname" placeholder="World">
6969
<hr>
7070
Hello {{yourname || 'World'}}!
7171
</doc:source>

docs/src/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
<div id="sidebar">
108108
<input type="text" ng:model="search" id="search-box" placeholder="search the docs"
109-
tabindex="1" accesskey="s" ng:model-instant>
109+
tabindex="1" accesskey="s">
110110

111111
<ul id="content-list" ng:class="sectionId" ng:cloak>
112112
<li ng:repeat="page in pages | filter:search" ng:class="getClass(page)">

src/ng/directive/ngBind.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
</script>
2828
<div ng-controller="Ctrl">
29-
Enter name: <input type="text" ng-model="name" ng-model-instant><br>
29+
Enter name: <input type="text" ng-model="name"><br>
3030
Hello <span ng-bind="name"></span>!
3131
</div>
3232
</doc:source>
@@ -122,8 +122,8 @@ var ngBindHtmlDirective = ['$sanitize', function($sanitize) {
122122
}
123123
</script>
124124
<div ng-controller="Ctrl">
125-
Salutation: <input type="text" ng-model="salutation" ng-model-instant><br>
126-
Name: <input type="text" ng-model="name" ng-model-instant><br>
125+
Salutation: <input type="text" ng-model="salutation"><br>
126+
Name: <input type="text" ng-model="name"><br>
127127
<pre ng-bind-template="{{salutation}} {{name}}!"></pre>
128128
</div>
129129
</doc:source>

src/ng/filter/filter.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{name:'Adam', phone:'555-5678'},
4242
{name:'Julie', phone:'555-8765'}]"></div>
4343
44-
Search: <input ng-model="searchText" ng-model-instant>
44+
Search: <input ng-model="searchText">
4545
<table id="searchTextResults">
4646
<tr><th>Name</th><th>Phone</th><tr>
4747
<tr ng-repeat="friend in friends | filter:searchText">
@@ -50,9 +50,9 @@
5050
<tr>
5151
</table>
5252
<hr>
53-
Any: <input ng-model="search.$" ng-model-instant> <br>
54-
Name only <input ng-model="search.name" ng-model-instant><br>
55-
Phone only <input ng-model="search.phone" ng-model-instant><br>
53+
Any: <input ng-model="search.$"> <br>
54+
Name only <input ng-model="search.name"><br>
55+
Phone only <input ng-model="search.phone"å><br>
5656
<table id="searchObjResults">
5757
<tr><th>Name</th><th>Phone</th><tr>
5858
<tr ng-repeat="friend in friends | filter:search">

src/ng/filter/filters.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
</script>
2525
<div ng-controller="Ctrl">
26-
<input type="number" ng-model="amount" ng-model-instant> <br>
26+
<input type="number" ng-model="amount"> <br>
2727
default currency symbol ($): {{amount | currency}}<br>
2828
custom currency identifier (USD$): {{amount | currency:"USD$"}}
2929
</div>
@@ -74,7 +74,7 @@ function currencyFilter($locale) {
7474
}
7575
</script>
7676
<div ng-controller="Ctrl">
77-
Enter number: <input ng-model='val' ng-model-instant><br>
77+
Enter number: <input ng-model='val'><br>
7878
Default formatting: {{val | number}}<br>
7979
No fractions: {{val | number:0}}<br>
8080
Negative number: {{-val | number:4}}
@@ -468,7 +468,7 @@ var uppercaseFilter = valueFn(uppercase);
468468
}
469469
</script>
470470
<div ng-controller="Ctrl">
471-
Snippet: <textarea ng-model="snippet" ng-model-instant cols="60" rows="3"></textarea>
471+
Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
472472
<table>
473473
<tr>
474474
<td>Filter</td>

src/ng/filter/limitTo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
</script>
3333
<div ng-controller="Ctrl">
34-
Limit {{numbers}} to: <input type="integer" ng-model="limit" ng-model-instant>
34+
Limit {{numbers}} to: <input type="integer" ng-model="limit">
3535
<p>Output: {{ numbers | limitTo:limit }}</p>
3636
</div>
3737
</doc:source>

0 commit comments

Comments
 (0)