diff options
| author | Igor Minar | 2012-03-19 09:37:32 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-20 11:07:35 -0700 |
| commit | 64fb1f262028679b7eb1760bb38f9b1e4003d8e7 (patch) | |
| tree | ce01369d8e54d18338e50ce36311486df76e7baf /src/directive | |
| parent | f49eaf8bf2df5f4e0e82d6c89e849a4f82c8d414 (diff) | |
| download | angular.js-64fb1f262028679b7eb1760bb38f9b1e4003d8e7.tar.bz2 | |
docs(filters): use ng-model-instant in live examples
Closes #807
Diffstat (limited to 'src/directive')
| -rw-r--r-- | src/directive/ngBind.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/directive/ngBind.js b/src/directive/ngBind.js index cc80ac5a..23588de5 100644 --- a/src/directive/ngBind.js +++ b/src/directive/ngBind.js @@ -26,7 +26,7 @@ } </script> <div ng-controller="Ctrl"> - Enter name: <input type="text" ng-model="name"> <br/> + Enter name: <input type="text" ng-model="name" ng-model-instant><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"><br/> - Name: <input type="text" ng-model="name"><br/> + Salutation: <input type="text" ng-model="salutation" ng-model-instant><br> + Name: <input type="text" ng-model="name" ng-model-instant><br> <pre ng-bind-template="{{salutation}} {{name}}!"></pre> </div> </doc:source> @@ -210,7 +210,7 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) { </script> <div ng-controller="Ctrl"> Google for: - <input type="text" ng-model="query"/> + <input type="text" ng-model="query" ng-model-instant> <a ng-bind-attr='{"href":"http://www.google.com/search?q={{query}}"}'> Google </a> (ng-bind-attr) | |
