title: ngStorage not working properly when redirect using window.location
body: <p>I'm trying to do a redirect after set a $storage var, using ngStorage module. This is not working, and I can't find out why. </p>
  
  <p>My code is below:
      
      </p>
  
  <pre><code>  &lt;head&gt;
      &lt;script data-require="angular.js@1.1.5" data-semver="1.1.5" src="http://code.angularjs.org/1.1.5/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://rawgithub.com/gsklee/ngStorage/master/ngStorage.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          angular.module('app', [
            'ngStorage'
          ]).
  
          controller('Ctrl', function (
            $scope,
            $localStorage
          ) {
              $scope.$storage = $localStorage.$default({                
                  array: []
              });
              $scope.Redirect1 = function () {
                  $scope.$storage.array = ['pineapple', 'pear', 'peach'];
                  window.location.href = 'http://localhost:61267/Page1.aspx?q=fruitsp';
              };
              $scope.Redirect2 = function () {                
                  $scope.$storage.array = ['blackberry', 'banana', 'blueberry'];
                  window.location.href = 'http://localhost:61267/Page1.aspx?q=fruitsb';
              };
          });
      &lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body ng-controller="Ctrl"&gt;    
      {{$storage|json}}
      &lt;br/&gt;
      &lt;button ng-click="Redirect1();"&gt;Change Array&lt;/button&gt;&lt;br/&gt;
      &lt;button ng-click="Redirect2();"&gt;Change Array2&lt;/button&gt;
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>If I remove the window.location rows, it work normally.</p>
  
  <p>Am I doing something in the wrong order?</p>