title: changing state using $state.go doesn't apply scope
body: <p>I'm currently working on an ionic angularJs app, where i need to change state on a button click. Apart from numerous other state's i have below two states which are.</p>
  
  <pre><code>.state('app.a', {
      url : "/base/a",
      views : {
          'myContent' : {
              templateUrl : "a.html",
              controller : 'MyController'
          }
      }
  })
  
  .state('app.b', {
      url : "/base/b",
      views : {
          'myContent' : {
              templateUrl : "b.html",
              controller : 'MyController'
          }
      }
  })
  </code></pre>
  
  <p>Now in a.html i have a button that calls method clickMe().</p>
  
  <pre><code>$scope.clickMe = function () {
      $state.go('app.b');
      $scope.someVal = 20;
      //$timeout(function(){
      //  $scope.$apply();
      //}, 0);
  }
  </code></pre>
  
  <p>b.html does load, however the value of someVal is just NOT reflected on b.html. One thing to note that if i put $scope.someVal = 20 outside clickMe() it does take effect (however, i need this to happen only on button click).</p>
  
  <p>Not sure, seems to be quite straightforward to me, any help would be appreciated.</p>