title: Angular factory always called twice
body: <p>I am calling a REST service from angular and it always calls the factory twice.  Here is the factory code.</p>
  
  <pre><code>app.factory('dataFactory', ['$http', function ($http) {
      var urlBase = '/api';
      var dataFactory = {};
  
      dataFactory.getMyItems = function () {            
          return $http.get(urlBase + '/MyItems');
      };
  
      return dataFactory;
  } ]);
  </code></pre>
  
  <p>It's called from the controller here</p>
  
  <pre><code>app.controller('MyItemsController', ['$scope', 'dataFactory',
      function ($scope, dataFactory) {            
          $scope.myItems;
  
          getItems();
  
          function getItems() {
  
              dataFactory.getMyItems()
                  .success(function (itemsData) {
                      $scope.myItems = itemsData;
                  })
                  .error(function (error) {
                      $scope.status = 'Unable to load items data: ' + error.message;
                  });
          }
      }
  ]);
  </code></pre>