Angularjs 如何在使用简单验证器和异步验证器进行验证时避免闪烁效应?

Angularjs 如何在使用简单验证器和异步验证器进行验证时避免闪烁效应?,angularjs,validation,asynchronous,Angularjs,Validation,Asynchronous,我有以下意见: <input id="firstname" class="form-control" name="firstname" ng-model="event.firstname" autocomplete="off" required validation-event-firstname ng-model-options="{ updateOn: 'default blur', debounce: { default: 300, blur: 0 } }"> 问

我有以下意见:

<input id="firstname" class="form-control"
   name="firstname" ng-model="event.firstname" autocomplete="off"
   required validation-event-firstname ng-model-options="{ updateOn: 'default blur', debounce: { default: 300, blur: 0 } }">
问题是:当我刷新页面并在字段中放入一些内容时,错误消息“required”显示为0.1s。此行为不取决于字段的内容:如果我输入了无效的服务器值(由
我的自定义验证触发)
,我可以看到错误消息(并且在0.1s后消失)

当我删除指令
validation event firstname
时,没有问题。我认为这个问题并不取决于异步验证器的代码,因为我尝试了我的业务代码,并使用了一个简单的
$timeout
,效果仍然是一样的


<>谢谢你的帮助。

问题不被复制,考虑添加一些代码谢谢你的领导你让我在别处寻找。我无法理解我的问题是什么:我从模块中删除了ngAnimate依赖项(这是不必要的),我的问题消失了。我没有成功地用ngAnimate复制plunker事件。。。
<ng-messages for="form.firstname.$error" role="alert" ng-show="(form.firstname.$dirty || form.firstname.$touched) && form.firstname.$invalid">
    <ng-message when="required" class="error-message">required</ng-message>
    <ng-message when="my-custom-validation" class="error-message">my custom validation</ng-message>
</ng-messages>