I have a problem converting the promise returned by the service to the controller. What I want is to create an array of JSON objects from the data contained in promise. Here is what I receive in the controller:
Here is the line that is used for printing that data:
console.log("controller unmatched: ", unmatched.getData(sFilter));
Here "unmatched" is the service, and getData() is its function.
Thanks!