How to pass multiple params in Restangular
martin2630 opened this issue · 1 comments
martin2630 commented
i need something like this
/events/5/conferences/?fields=pk,name,date
i have this:
Restangular.one('events', 5).getList('conferences', {fields: ['pk', 'name','date']}).then(function(conferences) {
console.log(vm.conferences);
});
the result show me only the date.
Can you help me?
Regards!
bostrom commented
Try Restangular.one("events", 5).all("conferences").getList({fields: "pk,name,date"})
.