I am using angular js and ionic framework.A problem is i need to remove a element from the jsondata which comes from API.
Json data :
[["[email protected]","joe"],["[email protected]","brain"],["[email protected]","bob"]];
i need to remove 2nd element "[email protected]" and dislay only the remaining elements
[["[email protected]","joe"],["[email protected]","bob"]];
Controller condition:
if(response.RETURN == "TRUE") {
var listObject = JSON.parse(response.LIST);
$scope.ulist = listObject;
//HERE I NEED TO FILTER THAT PARTICULAR ELEMENT
}
Thanks in advance