diff options
| -rw-r--r-- | docs/src/templates/index.html | 2 | ||||
| -rw-r--r-- | src/AngularPublic.js | 2 | ||||
| -rw-r--r-- | src/widget/input.js | 10 | ||||
| -rw-r--r-- | test/widget/inputSpec.js | 4 | 
4 files changed, 9 insertions, 9 deletions
| diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 46a77da3..9c30df96 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -101,7 +101,7 @@      <div id="sidebar">        <input type="text" ng:model="search" id="search-box" placeholder="search the docs" -             tabindex="1" accesskey="s" ng:bind-immediate> +             tabindex="1" accesskey="s" ng:model-instant>        <ul id="content-list" ng:class="sectionId" ng:cloak>          <li ng:repeat="page in pages | filter:search" ng:class="getClass(page)"> diff --git a/src/AngularPublic.js b/src/AngularPublic.js index e65f1281..9d31601f 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -103,7 +103,7 @@ function publishExternalAPI(angular){              ngModel: ngModelDirective,              ngList: ngListDirective,              ngChange: ngChangeDirective, -            ngBindImmediate: ngBindImmediateDirective, +            ngModelInstant: ngModelInstantDirective,              required: requiredDirective,              ngRequired: requiredDirective            }). diff --git a/src/widget/input.js b/src/widget/input.js index f3590e7d..854f8b06 100644 --- a/src/widget/input.js +++ b/src/widget/input.js @@ -1004,22 +1004,22 @@ var ngChangeDirective = valueFn({  /**   * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ng:bind-immediate + * @name angular.module.ng.$compileProvider.directive.ng:model-instant   *   * @element input   *   * @description   * By default, Angular udpates the model only on `blur` event - when the input looses focus. - * If you want to update after every key stroke, use `ng:bind-immediate`. + * If you want to update after every key stroke, use `ng:model-instant`.   *   * @example   * <doc:example>   *   <doc:source>   *     First name: <input type="text" ng:model="firstName" /><br /> - *     Last name: <input type="text" ng:model="lastName" ng:bind-immediate /><br /> + *     Last name: <input type="text" ng:model="lastName" ng:model-instant /><br />   *   *     First name ({{firstName}}) is only updated on `blur` event, but the last name ({{lastName}}) - *     is updated immediately, because of using `ng:bind-immediate`. + *     is updated immediately, because of using `ng:model-instant`.   *   </doc:source>   *   <doc:scenario>   *     it('should update first name on blur', function() { @@ -1034,7 +1034,7 @@ var ngChangeDirective = valueFn({   *   </doc:scenario>   * </doc:example>   */ -var ngBindImmediateDirective = ['$browser', function($browser) { +var ngModelInstantDirective = ['$browser', function($browser) {    return {      require: 'ngModel',      link: function(scope, element, attr, ctrl) { diff --git a/test/widget/inputSpec.js b/test/widget/inputSpec.js index daea7246..d8e88d2b 100644 --- a/test/widget/inputSpec.js +++ b/test/widget/inputSpec.js @@ -923,10 +923,10 @@ describe('input', function() {    }); -  describe('ng:bind-change', function() { +  describe('ng:model-instant', function() {      it('should bind keydown, change, input events', inject(function($browser) { -      compileInput('<input type="text" ng:model="value" ng:bind-immediate />'); +      compileInput('<input type="text" ng:model="value" ng:model-instant />');        inputElm.val('value1');        browserTrigger(inputElm, 'keydown'); | 
