Javascript 电子邮件/ID重复签入Angularjs

Javascript 电子邮件/ID重复签入Angularjs,javascript,html,angularjs,spring,Javascript,Html,Angularjs,Spring,在报名表中,我想做重复检查。 复制时,输入框下方会显示一条消息 <div class="form-group"> <label class="col-md-2 control-label"><strong>Email</strong></label> <div class="col-md-10"> <input type="email" class="form-control" name="usr_E

在报名表中,我想做重复检查。 复制时,输入框下方会显示一条消息

<div class="form-group">
  <label class="col-md-2 control-label"><strong>Email</strong></label>
  <div class="col-md-10">
     <input type="email" class="form-control" name="usr_Email" 
            ng-model="usrEmail" ng-keyup="checkDuplicate()">
     <span class="help-block" 
           ng-show="signupForm.$submitted || signupForm.usr_Email.$touched">
        <div ng-show="?????" class="text-danger">is duplicated!</div>
     </span>
     </div>
</div>
我很困惑我应该写什么


提前,谢谢

控制器:

if(data.number == 0){
    //If email id is duplicate, then show the message in UI
      $scope.isDuplicate = true;    
} else{
   //If email id is not duplicate, then hide the message in UI
     $scope.isDuplicate = false;
}
<div ng-show="isDuplicate" class="text-danger">is duplicated!</div>
HTML:

if(data.number == 0){
    //If email id is duplicate, then show the message in UI
      $scope.isDuplicate = true;    
} else{
   //If email id is not duplicate, then hide the message in UI
     $scope.isDuplicate = false;
}
<div ng-show="isDuplicate" class="text-danger">is duplicated!</div>
是重复的!

我使用了
isDuplicate
scope变量来显示消息。

我很困惑我应该在“?”中写些什么。
你是什么意思?我的意思是,我不知道如何在“?”中编码。检查我的答案你得到答案了吗?