mgonto/restangular

How to pass multiple params in Restangular

Closed this issue · 1 comments

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!

Try Restangular.one("events", 5).all("conferences").getList({fields: "pk,name,date"}).