i want to loop through an array of application numbers to see if there is a match using indexOf.
currently my array looks like..
array:
"applications":[
"123456",
"224515",
"658454",
"784123"
]
my controller:
$scope.hasApplicationNumber = function (appNo) {
var applicationsArray = applications;
return applicationsArray.indexOf(appNo);
}
html:
<span ng-if="hasApplicationNumber(784123)">Its a Match!</span>