diff options
Diffstat (limited to 'src/ng/directive')
| -rw-r--r-- | src/ng/directive/input.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 5fb0fb14..c2ff3664 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -475,8 +475,8 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { var patternObj = scope.$eval(pattern); if (!patternObj || !patternObj.test) { - throw minErr('ngPattern')('noregexp', - 'Expected {0} to be a RegExp but was {1}. Element: {2}', pattern, + throw minErr('ngPattern')('noregexp', + 'Expected {0} to be a RegExp but was {1}. Element: {2}', pattern, patternObj, startingTag(element)); } return validate(patternObj, value); @@ -846,7 +846,7 @@ var VALID_CLASS = 'ng-valid', * Note that you cannot use `NgModelController` in a directive with an isolated scope, * as, in that case, the `ng-model` value gets put into the isolated scope and does not get * propogated to the parent scope. - * + * * * This example shows how to use `NgModelController` with a custom control to achieve * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`) @@ -940,7 +940,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ ngModelSet = ngModelGet.assign; if (!ngModelSet) { - throw minErr('ngModel')('noass', "Expression '{0}' is non-assignable. Element: {1}", + throw minErr('ngModel')('noass', "Expression '{0}' is non-assignable. Element: {1}", $attr.ngModel, startingTag($element)); } @@ -1119,7 +1119,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ * - keeping state of the control (valid/invalid, dirty/pristine, validation errors), * - setting related css class onto the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`), * - register the control with parent {@link ng.directive:form form}. - * + * * Note: `ngModel` will try to bind to the property given by evaluating the expression on the * current scope. If the property doesn't already exist on this scope, it will be created * implicitly and added to the scope. |
