title: AngularJS. Return new factory instance
body: <p>I'm a newbie in AngularJS and have faced the issue.</p>
  
  <p>Can I reinject my factory singleton object across all controllers, where it's been injected?</p>
  
  <p>For example:</p>
  
  <pre><code>.factory('medicalCenterService', function(MedicalCenterResource) {
  
      var medicalCenterService = {};
  
      medicalCenterService.currentMedCenter = MedicalCenterResource.get();
  
      medicalCenterService.reloadMedCenter = function() {
          medicalCenterService.currentMedCenter = MedicalCenterResource.get();
  
          return medicalCenterService.currentMedCenter;
      };
  
      medicalCenterService.updateMedicalCenter = function(medicalCenter) {
          MedicalCenterResource.updateMedicalCenter(medicalCenter);
          medicalCenterService.currentMedCenter = medicalCenter;
      };
  
      return medicalCenterService;
  })
  </code></pre>
  
  <p>In MedicalCenterController I get singleton object with medical center when application starts:</p>
  
  <pre><code>function MedicalCenterController($scope, medicalCenterService) {
      $scope.currentMedCenter = medicalCenterService.currentMedCenter;
  }
  </code></pre>
  
  <p>But later I try to edit medical center fields (name, address, etc..) in AccountProfileController</p>
  
  <pre><code>function AccountProfileController($scope, medicalCenterService) {
  
      $scope.currentMedCenter = medicalCenterService.currentMedCenter;
  
      $scope.applyMedCenterChanges = function (currentMedCenter) {
          medicalCenterService.updateMedicalCenter(currentMedCenter);
      };
  }
  </code></pre>
  
  <p>And what I'm expecting to have is the object with updated fields.
  How to return a new instance of my singleton?</p>