title: Button with IonicHistory.goBack()
body: <p>I have a simple App built with Ionic/Cordova. In each page I want to create a simple "Go Back" block button - the user can press it to go to the previous page in the App. </p>
  
  <p>I'm thinking of doing this using $ionicHistory. However, the method <em>$ionicHistory.goBack()</em> is not working.</p>
  
  <p>I am currently using the usual <em>window.history.back()</em> instead, which works, but I don't understand why the ionic method is not working like it should.</p>
  
  <p>Here is the view of the code:</p>
  
  <pre><code>&lt;button class="button button-block button-assertive" ng-click="goBackHandler()"&gt;
     Go Back
  &lt;/button&gt;
  </code></pre>
  
  <p>And here is the Controller:</p>
  
  <pre><code>angular.module('starter.controllers', ['ionic'])
  
  .controller('AppCtrl', function($scope, $ionicHistory) 
  {
      $scope.goBackHandler = function()
      {
          $ionicHistory.goBack();                      //This doesn't work
          //window.history.back();                          //This works
          //alert('code to go back called. Did it work?');  //For testing
      }
  });
  </code></pre>
  
  <p>This should be pretty straight-forward. What could I be missing?</p>
  
  <p>Edit: Plunker here - <a href="http://plnkr.co/yJqdfs" rel="noreferrer">http://plnkr.co/yJqdfs</a></p>