title: AngularJs is empty list
body: <p>I make simple program with .net Core and AngularJs + webApi
  My Api code as below
  There is no Js error after running the problem is factory return nothing.
  when I set break point on  $location.qwets = index.query(); my "qwets" is empty the length of  "qwets" is 0.
  The get method is working each time page refresh but result is nothing.</p>
  
  <blockquote>
    <p>I changed the code now I have results in 'qwets' but index is still empty</p>
  </blockquote>
  
  <p>Thank you</p>
  
  <pre><code>// GET: api/values
      [HttpGet]
      public IEnumerable&lt;ApplicationUser&gt; Get()
      {
          return new List&lt;ApplicationUser&gt; {
              new ApplicationUser {Id="test", Email="test1@test.com" },
              new ApplicationUser {Id="tst2",Email="test2@test.com" }
  
          };
      }
  </code></pre>
  
  <p>app.js File is</p>
  
  <pre><code>(function () {
  'use strict';
  
  angular.module('saniehhaApp', [
      // Angular modules 
      //'ngRoute'
  
      // Custom modules  
      "indexService"
      // 3rd Party Modules
  
  ]);
  })();
  (function () {
  'use strict';
  
  angular
      .module('saniehhaApp')
      .controller('indexController', indexController);
  
  indexController.$inject = ['$location', 'index'];
  
  function indexController($location, index) {
      index.query()
      .$promise.then(function (result) {
       $scope.qwets = result;
  }
  })();
  (function () {
  'use strict';
  var indexService = angular.module('indexService', ['ngResource']);
  
  indexService.factory('index', ['$resource',
      function ($resource) {
       return $resource('/api/index/', {}, {
           query:
               {
                   method: 'GET',
                   params: {},
                   isArray: true
               }
       });
  }]);
  })();
  </code></pre>
  
  <p>and my index.html file</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="saniehhaApp"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8" /&gt;
  &lt;title&gt;SampleTest&lt;/title&gt;
  
  &lt;script src="vendor/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="vendor/angular-resource.min.js"&gt;&lt;/script&gt;
  &lt;script src="vendor/angular-route.min.js"&gt;&lt;/script&gt;
  &lt;script src="scripts/app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-cloak&gt;
  &lt;div ng-controller="indexController"&gt;&lt;/div&gt;
  &lt;h2&gt;list of users&lt;/h2&gt;
  &lt;ul&gt;
      &lt;li ng-repeat="qwet in qwets"&gt;
          &lt;p&gt; "{{qwet.Id}}" - {{qwet.Email}}&lt;/p&gt;
  
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>