mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-10 07:44:43 +00:00
style(input): remove ws
This commit is contained in:
parent
8a3e3f9eb3
commit
87aeb78c0e
1 changed files with 5 additions and 5 deletions
|
|
@ -475,8 +475,8 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
|
||||||
var patternObj = scope.$eval(pattern);
|
var patternObj = scope.$eval(pattern);
|
||||||
|
|
||||||
if (!patternObj || !patternObj.test) {
|
if (!patternObj || !patternObj.test) {
|
||||||
throw minErr('ngPattern')('noregexp',
|
throw minErr('ngPattern')('noregexp',
|
||||||
'Expected {0} to be a RegExp but was {1}. Element: {2}', pattern,
|
'Expected {0} to be a RegExp but was {1}. Element: {2}', pattern,
|
||||||
patternObj, startingTag(element));
|
patternObj, startingTag(element));
|
||||||
}
|
}
|
||||||
return validate(patternObj, value);
|
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,
|
* 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
|
* as, in that case, the `ng-model` value gets put into the isolated scope and does not get
|
||||||
* propogated to the parent scope.
|
* propogated to the parent scope.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This example shows how to use `NgModelController` with a custom control to achieve
|
* This example shows how to use `NgModelController` with a custom control to achieve
|
||||||
* data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
|
* data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
|
||||||
|
|
@ -940,7 +940,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
|
||||||
ngModelSet = ngModelGet.assign;
|
ngModelSet = ngModelGet.assign;
|
||||||
|
|
||||||
if (!ngModelSet) {
|
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));
|
$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),
|
* - 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`),
|
* - 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}.
|
* - 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
|
* 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
|
* current scope. If the property doesn't already exist on this scope, it will be created
|
||||||
* implicitly and added to the scope.
|
* implicitly and added to the scope.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue