From c4c60c25b494afe282dd1a86a030fbc2c63639aa Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 24 Feb 2012 11:45:34 -0800 Subject: reafactor: Rename ng:bind-immediate -> ng:model-instant --- src/widget/input.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/widget/input.js') 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 * * * First name:
- * Last name:
+ * Last name:
* * 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`. *
* * it('should update first name on blur', function() { @@ -1034,7 +1034,7 @@ var ngChangeDirective = valueFn({ * *
*/ -var ngBindImmediateDirective = ['$browser', function($browser) { +var ngModelInstantDirective = ['$browser', function($browser) { return { require: 'ngModel', link: function(scope, element, attr, ctrl) { -- cgit v1.2.3