Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validations of the input
Message
From
09/09/2017 04:22:47
 
General information
Forum:
AngularJS
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01653867
Message ID:
01654162
Views:
51
>My new question on that topic:
>
>https://stackoverflow.com/questions/46122489/preventing-extra-calls-of-asyncvalidators

The jist of most of the links seems to be that you cannot rely on failed regular validators to prevent the async validators firing *on page load*.

You probably need to add more logic to ngModel.$asyncValidators.smCodeUnique to ensure that situations that don't require the $http call return services.Q.when(true);
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform