title: Assigning response data into an array (angularjs)
body: <p>I am new to angular js, i wanted to assign the suncorp data which is equal to response into an array , what's wrong with the code? . is the result an array of data? . btw dont worry about the services its working the data is from an api (<a href="https://jobs.search.gov/jobs/search.json?query=nursing+jobs" rel="nofollow noreferrer">https://jobs.search.gov/jobs/search.json?query=nursing+jobs</a>).</p>
  
  <pre><code>function TESTController($scope, testFac) {
      /* console.log("TESTControlleris now available.");*/
      $scope.data1= [];
      testFac.getData().then(function(response) {
      $scope.data1 = response.data;
  
            console.log("Data:",$scope.data1);
      })
  </code></pre>