I have a array in angularjs like below:
var test=["abc/1/1","def/2/2","efg/3/3"];
I want to check if an array contains value having "abc" in it in html
I checked:
test.indexOf("abc")!=-1
but its returning false
I have populated array in JS and i want to check if array contains value containing abc in html.
button form="myAttributeAdd" type="submit" data-ng-disabled="" class="btn btn-success btn-xs"> Save
This is button element in my html. here data-ng-disabled will be true or false depending on array data.If array data value contains abc it will be enabled else disabled