title: Clicking the device back button closes the app instead of going back to previous page
body: <p>If click any <code>ion-item</code> it open the desired page but if i click device back button it close the app rather than going back to previous page in android:</p>
  
  <p>This is my ionic side menu:</p>
  
  <pre><code>&lt;ion-side-menus enable-menu-with-back-views="false"&gt;
    &lt;ion-side-menu-content&gt;
      &lt;ion-nav-bar class="bar-positive"&gt;
        &lt;ion-nav-back-button&gt;&lt;/ion-nav-back-button&gt;
        &lt;ion-nav-buttons side="left"&gt;
          &lt;button class="button button-icon icon ion-android-menu" menu-toggle="left"&gt;
          &lt;/button&gt;
        &lt;/ion-nav-buttons&gt;
      &lt;/ion-nav-bar&gt;
      &lt;ion-nav-view name="menuContent"&gt;&lt;/ion-nav-view&gt;
    &lt;/ion-side-menu-content&gt;
  
    &lt;ion-side-menu side="left"&gt;
      &lt;ion-header-bar class="bar-positive"&gt;
        &lt;h1 class="title"&gt;&lt;/h1&gt;
      &lt;/ion-header-bar&gt;
      &lt;ion-content&gt;
        &lt;ion-list&gt;
          &lt;ion-item menu-close ng-click="login()"&gt;
            Login
          &lt;/ion-item&gt;
          &lt;ion-item menu-close ui-sref="app.search"&gt;
            Search
          &lt;/ion-item&gt;
          &lt;ion-item menu-close href="#/app/browse"&gt;
            Browse
          &lt;/ion-item&gt;
          &lt;ion-item menu-close href="#/app/playlists"&gt;
            Playlists
          &lt;/ion-item&gt;
        &lt;/ion-list&gt;
      &lt;/ion-content&gt;
    &lt;/ion-side-menu&gt;
  &lt;/ion-side-menus&gt;
  </code></pre>
  
  <p>Here is <code>app.js</code> :</p>
  
  <pre><code>    .state('app', {
      url: '/app',
      abstract: true,
      templateUrl: 'templates/menu.html',
      controller: 'AppCtrl'
    })
  
    .state('app.search', {
      url: '/search',
      views: {
        'menuContent': {
          templateUrl: 'templates/search/default.html'
        }
      }
    })
    .state('app.search-form', {
      url: '/search-form',
      views: {
        'menuContent': {
          templateUrl: 'templates/search/search-form.html'
        }
      }
    })
  </code></pre>
  
  <p><strong>One solution I found:</strong></p>
  
  <pre><code>$ionicHistory.nextViewOptions({        
    disableBack: true,
    historyRoot: true
  });      
  </code></pre>
  
  <p>So when you click a button and going to next page, this will will disable back button.</p>