title: find out duplicate entry while editing the person name information in angular
body: <p>I can create people information with their b'date using add button. It get displayed top of the page. If i want to edit information, I again click on that information and edit it easily. I need one validation there that i should not choose bday.name(person name) duplicate. e.q. if i already have "peter" person so i can't edit and change any other person name to "peter". so need to avoid duplicate entry in list.</p>
  
  <p>plunker: <a href="http://plnkr.co/edit/2UFfaG?p=preview" rel="nofollow">http://plnkr.co/edit/2UFfaG?p=preview</a></p>
  
  <pre><code>$scope.newBirthday = function(){
  
      $scope.bdays.push({name:$scope.bdayname, date:$scope.bdaydate});
  
      $scope.bdayname = '';
      $scope.bdaydate = '';
  
  };
  </code></pre>