Joined January 2015
·
Posted to
Post x-www-form-urlencoded data with Restangular
over 1 year
ago
How to remove following syntax error:
var params = '{"keywords": {"$in":["'+($scope.search.split(" "))+'"]}}&embedded={"author":1}'
Restangular.all('people/posts').getList({where :params}).then(function(data) {
$scope.results = data
});
then url showing following error :
SyntaxError
File "<unknown>", line 1
SyntaxError: can't assign to operator
Posted to
Post x-www-form-urlencoded data with Restangular
over 1 year
ago
I got my answer you are initiator for me tanks allot. My doubt is I have friends array with friends ids how can I include in above query. (["someid","someid"])
Posted to
Post x-www-form-urlencoded data with Restangular
over 1 year
ago
How to write query for where in cause in restangular for bellow url
http://127.0.0.1:8000/?where={"_id": {"$in": ["someid","someid"]}}
upto this url correctly working .
//var params = '{"keywords": {"$in":["'+($scope.search.split(" "))+'"]}}
By adding &embedded={"author":1}' not working