diff options
| author | Igor Minar | 2012-04-04 15:56:12 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-04-04 15:56:15 -0700 | 
| commit | fdf17d729fa7651e88dc5f27c40b8de875a34a55 (patch) | |
| tree | 397c761a463488bb625ba9b99a51f77991b19d2c /src/ng | |
| parent | 85776c0d37316c5aaecd84eedec275bac2cd0298 (diff) | |
| download | angular.js-fdf17d729fa7651e88dc5f27c40b8de875a34a55.tar.bz2 | |
fix(docs): remove ngModelInstant from all examples
just fixing leftover code after the removal of ngModelInstant
Diffstat (limited to 'src/ng')
| -rw-r--r-- | src/ng/directive/ngBind.js | 6 | ||||
| -rw-r--r-- | src/ng/filter/filter.js | 8 | ||||
| -rw-r--r-- | src/ng/filter/filters.js | 6 | ||||
| -rw-r--r-- | src/ng/filter/limitTo.js | 2 | 
4 files changed, 11 insertions, 11 deletions
| diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 32be2f4b..81541347 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -26,7 +26,7 @@           }         </script>         <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>!         </div>       </doc:source> @@ -122,8 +122,8 @@ var ngBindHtmlDirective = ['$sanitize', function($sanitize) {           }         </script>         <div ng-controller="Ctrl"> -        Salutation: <input type="text" ng-model="salutation" ng-model-instant><br> -        Name: <input type="text" ng-model="name" ng-model-instant><br> +        Salutation: <input type="text" ng-model="salutation"><br> +        Name: <input type="text" ng-model="name"><br>          <pre ng-bind-template="{{salutation}} {{name}}!"></pre>         </div>       </doc:source> diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index 008897a1..4d182b59 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -41,7 +41,7 @@                                  {name:'Adam', phone:'555-5678'},                                  {name:'Julie', phone:'555-8765'}]"></div> -       Search: <input ng-model="searchText" ng-model-instant> +       Search: <input ng-model="searchText">         <table id="searchTextResults">           <tr><th>Name</th><th>Phone</th><tr>           <tr ng-repeat="friend in friends | filter:searchText"> @@ -50,9 +50,9 @@           <tr>         </table>         <hr> -       Any: <input ng-model="search.$" ng-model-instant> <br> -       Name only <input ng-model="search.name" ng-model-instant><br> -       Phone only <input ng-model="search.phone" ng-model-instant><br> +       Any: <input ng-model="search.$"> <br> +       Name only <input ng-model="search.name"><br> +       Phone only <input ng-model="search.phone"å><br>         <table id="searchObjResults">           <tr><th>Name</th><th>Phone</th><tr>           <tr ng-repeat="friend in friends | filter:search"> diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js index 19f79ad1..d6efc418 100644 --- a/src/ng/filter/filters.js +++ b/src/ng/filter/filters.js @@ -23,7 +23,7 @@           }         </script>         <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>           custom currency identifier (USD$): {{amount | currency:"USD$"}}         </div> @@ -74,7 +74,7 @@ function currencyFilter($locale) {           }         </script>         <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>           No fractions: {{val | number:0}}<br>           Negative number: {{-val | number:4}} @@ -468,7 +468,7 @@ var uppercaseFilter = valueFn(uppercase);           }         </script>         <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>           <tr>             <td>Filter</td> diff --git a/src/ng/filter/limitTo.js b/src/ng/filter/limitTo.js index af94b2f4..0efb80f2 100644 --- a/src/ng/filter/limitTo.js +++ b/src/ng/filter/limitTo.js @@ -31,7 +31,7 @@           }         </script>         <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>         </div>       </doc:source> | 
