Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validations of the input
Message
De
09/09/2017 04:22:47
 
 
Information générale
Forum:
AngularJS
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01653867
Message ID:
01654162
Vues:
52
>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);
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform