title: Can't access $scope variables after changing view with $location.path
body: <p>I'm trying to access data that is on the $scope on a view where the app lands after clicking a button but it seems as if after using $location.path(url) to do the redirection the APP cannot see a variable that exists on the $scope anymore.</p>
  
  <p>Form with the button:</p>
  
  <pre><code>&lt;form ng-submit="getBrokenProbes()"&gt;
              &lt;table class="table table-striped"&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Bmonitor&lt;/th&gt;
                      &lt;th&gt;Select Bmonitor&lt;/th&gt;
  
                  &lt;/tr&gt;
                  &lt;tr ng-repeat="bmonitor in bmonitors"&gt;
                      &lt;td&gt;
                          &lt;span&gt;{{bmonitor.domainName}}&lt;/span&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;button class="btn btn-primary" ng-click="getBrokenProbes(bmonitor)"&gt;Request&lt;/button&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>app.controller('logmeinValidationCtrl', ['$scope','$http', '$location', function($scope,$http, $location){
  
          $scope.bmonitors = {};
  
          $scope.brokenProbes = {};
  
          $http.get('http://localhost/getBmonitors').success(function (data) {
              $scope.bmonitors = data;
              console.log($scope.bmonitors);
          });
  
          $scope.getBrokenProbes = function(bmonitor) {
              let url = 'http://localhost/getBrokenProbes';
              $http.post(url, bmonitor).then(function (response) {
                  $scope.brokenProbes = response.data.hosts;
                  console.log($scope.brokenProbes);
                  $scope.showBrokenProbes();
              })
          };
  
          $scope.showBrokenProbes = function () {
              $location.path('/logmeinValidationResult')
          }
  
      }]);
  </code></pre>
  
  <p>I'm trying to show that data in a different view but $scope.brokenProbes is not available in logmeinValidationResult.html (the page where I land after $location.path) so it just shows an empty table.</p>
  
  <p>logmeinValidationResult.html</p>
  
  <pre><code>&lt;table class="table table-striped"&gt;
          &lt;tr&gt;
              &lt;th&gt;Probe name&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr ng-repeat="probe in brokenProbes"&gt;
              &lt;td&gt;
                  &lt;span&gt;{{probe.description}}&lt;/span&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>New page controller:</p>
  
  <pre><code>app.controller('logmeinValidationResultCtrl', ['$scope', function($scope){
          console.log($scope.brokenProbes); //This yields undefined
      }]);
  </code></pre>