I've made an application to bring the device contacts. My question is the following when I bring the phone it brings me an array, with the type: mobile, value="" with the phone, how can I make a treatment to only bring the number?
<ion-list><ion-itemng-repeat="contact in contacts">
{{contact.displayName}}, {{contact.phoneNumbers}
</ion-item>
</ion-list>
.controller("contatosCtrl", function ($scope, $cordovaContacts) {
$scope.getContactList = function () {
$cordovaContacts.find({
filter: ''
}).then(function (result) {
$scope.contacts = result;
}, function (error) {
console.log("ERROR: " + error);
});
}
});