I am using ng-repeat
for printing the HTML input element. I want to check that when I add new HTML input element it should not contain the same value as compared with the previous one.
This is my code.
<div class="row" ng-repeat="m in machines">
<div id="machinename_{{$index}}">
<input id="machinenameInput_{{$index}}" type="text" class="form-control" maxlength="20" ng-model="m.alias" required>
</div>
</div>
In the above code when i add new machine name it should not contain the same name.Thank you in advance