aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget/input.js
diff options
context:
space:
mode:
authorVojta Jina2012-02-24 11:45:34 -0800
committerVojta Jina2012-02-28 18:22:41 -0800
commitc4c60c25b494afe282dd1a86a030fbc2c63639aa (patch)
treeac48ea03a20b6f9954bdea12bfd9c78f2868f328 /src/widget/input.js
parent139e1b09a94f60b351cc961d8bfd882c0b8ba594 (diff)
downloadangular.js-c4c60c25b494afe282dd1a86a030fbc2c63639aa.tar.bz2
reafactor: Rename ng:bind-immediate -> ng:model-instant
Diffstat (limited to 'src/widget/input.js')
-rw-r--r--src/widget/input.js10
1 files changed, 5 insertions, 5 deletions
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) {