title: $http.get() in controller not working for my API
body: <p>I am working on Application which uses <strong>Angularjs</strong>.I want to call api and get data using $http.get().My problem is when I use my api in url its not working whereas I use url which I found on w3schools tutorial is working fine.
  here is my code : </p>
  
  <pre><code> var url = "/api/v1/policycategory/get";
   $http.get(url).then(function (response) {        
      $scope.myString= response.statusText;
   });
  </code></pre>
  
  <p>Using my api I am getting my response in browser as below :</p>
  
  <p>[{"id":1,"name":"Dependants only","displayName":"Dependants Only","dateTimeCreated":"2016-05-12T11:58:19.35"},{"id":2,"name":"One adult","displayName":"Single","dateTimeCreated":"2016-05-12T11:58:19.357"},{"id":3,"name":"One adult &amp; dependant(s)","displayName":"Sole Parent","dateTimeCreated":"2016-05-12T11:58:19.363"},{"id":4,"name":"One adult &amp; any dependants","displayName":"Sole Parent Plus","dateTimeCreated":"2016-05-12T11:58:19.367"},{"id":5,"name":"Two adults","displayName":"Couple","dateTimeCreated":"2016-05-12T11:58:19.367"},{"id":6,"name":"Two adults &amp; dependant(s)","displayName":"Family","dateTimeCreated":"2016-05-12T11:58:19.37"},{"id":7,"name":"Two adults &amp; any dependants","displayName":"Family Plus","dateTimeCreated":"2016-05-12T11:58:19.37"}]</p>
  
  <p><strong>When I use my api,it does not run that part inside function</strong>.</p>