title: ionic - ion-nav-view not working
body: <p>I am building a ionic pacakage, having multiple views. I use the route provider to navigate between different views.</p>
  
  <p>app.js</p>
  
  <pre><code>.config(function($routeProvider,$locationProvider){
  
      $routeProvider
      .when('/search',
          {
              controller : 'MyController',
              templateUrl : 'partials/search.html'
          })
  
      .when('/not-found/:className',
          {
              controller : 'MyController',
              templateUrl : 'partials/not-found.html'
          })
  </code></pre>
  
  <p>My index.html   </p>
  
  <pre><code>  &lt;body ng-app="MyApp"&gt;  
          &lt;ng-view&gt;&lt;/ng-view&gt;
  
        &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>The problem is that the back button on my phone does not work.i.e it does not remember the history.
  e.g If I go from search.html to not-found.html, when I press the back button on my phone, I expect it to come back to search.html instead it closes my app.
  I looked and ionic forum and the suggest way to make back button work is to use <code>ion-nav-view</code>. If I replace <code>ng-view</code> with <code>ion-nav-view</code>, the search/not-found page are not rendering, I even tried adding the <code>ion-view</code> on the search/not-found html page.<br>
  1) Could you please suggest a way to get my back button working?</p>