title: AngularJS OnsenUI reload parent page on nav.popPage() in child page
body: <p>I'm calling a function on ng-init and in that page I'm pushing a new page to the pageStack of navigator on a button click. And in the child page I'm popping the current page. Now I want to reload the parent page when the child page is removed from page stack.</p>
  
  <p><strong>Here is the code:</strong></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ons-navigator var="nav" page="page1.html"&gt;
  
  &lt;/ons-navigator&gt;
  
  &lt;ons-template id="page1.html"&gt;
      &lt;ons-page ng-controller="pageOneController" ng-init="reload()"&gt;
          &lt;ons-toolbar&gt;
              &lt;div class="center"&gt;Page 1&lt;/div&gt;
          &lt;/ons-toolbar&gt;
          &lt;ons-button ng-click="nav.pushPage('page2.html')"&gt;Push Page&lt;/ons-button&gt;
      &lt;/ons-page&gt;
  &lt;/ons-template&gt;
  
  &lt;ons-template id="page2.html"&gt;
      &lt;ons-page&gt;
          &lt;ons-toolbar&gt;
              &lt;div class="center"&gt;Page 2&lt;/div&gt;
          &lt;/ons-toolbar&gt;
          &lt;ons-button ng-click="nav.popPage();"&gt;Pop Page&lt;/ons-button&gt;
      &lt;/ons-page&gt;
  &lt;/ons-template&gt;
  </code></pre>
  
  <p><strong>AngularJS</strong></p>
  
  <pre><code>module.controller('pageOneController', function(){
      $scope.reload = function(){
          console.log('Page one controller reloaded');
      }
  });
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>one solution is to reload the app by using</p>
  
  <pre><code>window.location.reload(true);
  </code></pre>