-
-
Save paritosh64ce/3c0f241f10f8f7a4d0f0ba3d7049ae08 to your computer and use it in GitHub Desktop.
Passing header data along with HTTP get call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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