[Answered ]-Why won't my Angular front-end pass correct $http.get parameters to Django back-end?

2👍

A HTTP GET request can’t contain data to be posted to the server. However you can add a query string to the request.

 $http.get(API + '/api/getProfile', {params:{'profileId':5}})
      .then(function (response) { /* */ })...

OR

$http({ 
     url: API + '/api/getProfile', 
     method: "GET",
     params: {'profileId':5}
  });

check here1 and check here2

Leave a comment