Skip to content

Instantly share code, notes, and snippets.

@paritosh64ce
Last active November 12, 2017 14:11
Show Gist options
  • Save paritosh64ce/3c0f241f10f8f7a4d0f0ba3d7049ae08 to your computer and use it in GitHub Desktop.
Save paritosh64ce/3c0f241f10f8f7a4d0f0ba3d7049ae08 to your computer and use it in GitHub Desktop.
Passing header data along with HTTP get call
svc.loadOrders = function() {
var headers = {
'userId': '<userId>',
'license': '<licenseKey>'
};
return $http.get('loadOrderURL', headers);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment