You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -806,7 +806,7 @@ var NgModelController = ['$scope', '$exceptionHandler', 'ngModel',
806
806
* @param {string} name Name of the validator.
807
807
* @param {boolean} isValid Whether it should $emit `$valid` (true) or `$invalid` (false) event.
808
808
*/
809
-
this.emitValidity=function(name,isValid){
809
+
this.setValidity=function(name,isValid){
810
810
811
811
if(!isValid&&this.error[name])return;
812
812
if(isValid&&!this.error[name])return;
@@ -890,7 +890,8 @@ var NgModelController = ['$scope', '$exceptionHandler', 'ngModel',
890
890
* @element input
891
891
*
892
892
* @description
893
-
* Is directive that tells Angular to do two-way data binding. It works together with `input`, `select`, `textarea`. You can easily write your own directives to use `ng:model` pretty easily.
893
+
* Is directive that tells Angular to do two-way data binding. It works together with `input`,
894
+
* `select`, `textarea`. You can easily write your own directives to use `ng:model` as well.
894
895
*
895
896
* `ng:model` is responsible for:
896
897
*
@@ -901,7 +902,7 @@ var NgModelController = ['$scope', '$exceptionHandler', 'ngModel',
901
902
* - setting related css class onto the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`),
902
903
* - register the widget with parent {@link angular.module.ng.$compileProvider.directive.form form}.
0 commit comments