Here is my array: emp=["111","56"]
.
This is the code I have:
<input type="text" placeholder="Enter" class="form-control" name="Emp" ng-model="myModel.Emp" ng-required="currentStep ==2"/>
<input type="text" placeholder="Enter" class="form-control" name="EmpS" ng-model="myModel.EmpS" ng-required="currentStep == 2"/>
<span ng-if="(emp.indexOf('{{myModel.Emp}}') > -1 ) ? (myModel.EmpS=''):(myModel.EmpS=emp.indexOf('{{myModel.Emp}}'))" ></span>
I'm having trouble with this code as it always ends up in the false condition. Can someone please assist me?