Hi Kamal,
Ok, I think the base of your problem is that you use a string as an object.
this is from your code:
$scope.data.repeatingValues = [ 'apple', new String('Orange') ];
$scope.data.repeatingValues[1].$$error = "Some repeating error";
during run-time this translated roughly into: "apple".$$error='Some..'. I’m
not sure if that’s a good idea.
Why don’t you just push an custom validator to the ngModel.$validators?
<https://docs.angularjs.org/api/ng/type/ngModel.NgModelController>?
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.