HTTP.Get AngularJS

Contact us POSTMAN can contact us to solve problems (we serve here, GET and RAW)

Tengo mi controlador:

var headers = {headers: new HttpHeaders ({# Content; Type: # application; json; charset = utf-8}};
var object = JSON.stringify (test)

TestService.calculate (object, headers) .then (
function (d) {
console.log (d)
}
)

My servicio:

CalculateCorrelation: function (object, options) {
returns $ http.get (URL, object, options, {
settings: {}
}). then (function (answer) {
return response.data;
}, function (errResponse) {
return $ q.reject (errResponse);
});
}

Error Error: Error: HttpHeaders is not defined.

Want to know what's new?