0

I am having trouble while passing multiple param in http request.

Here is the code:

var allData={"uid": user_id, "emp_id": emp_id, "job_id": job_id}
$http({
  url: 'msg_check.php',
  method: "GET",
  // params: {'uid': user_id, 'emp_id': emp_id, 'job_id': job_id}
  params: allData
})
.success(function(datas) {
  $scope.choices = datas;
});

For above code I am not getting any error in Firebug, but my webpage shows all Angular {{somevalue}} like this. It seems like it is breaking.

If I pass only this params: {'uid': user_id} then it is working fine.

What am I doing wrong?

3
  • Open your console, and read the error message. Also, don't use success() which doesn't exist anymore, after being deprecated for a long time. Use then(). Commented May 20, 2017 at 18:51
  • Take a look at this SO Commented May 20, 2017 at 18:52
  • Since this is an exact duplicate that has not attracted answers, it can probably be deleted. Commented Oct 23, 2017 at 21:54

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.