How to add header in $http.get in angularjs
<p>Hi I am workinig on Angularjs application.I am passing some items in header.Is that correct ? I have my code as below:</p>

<pre><code>$http({
     method: 'GET',
     url: 'http://api/v1/fund/get?major=true',
     headers: {
         'Content-Type': 'application/json',
         'ApiKey': 'asdsd5369a7c19e34e9b205d6f916837sds90927esdsd80556b959e2ac8a8f3',
         'UserAddress': '111.111.5.45'
     }
 }).success(function (response) {
     $scope.data = response.data;
     $scope.Temp = response.statusText;;
 }).error(function (qwe) {
     var temp = qwe.statusText;
 });
</code></pre>