title: Using Angularjs with jquerymobile not able go back with the back button
body: <p>Hello friends i m using angularjs with jquery mobile in my app and done routing with mobileangular adapter javascript that will handle routing (jquery-mobile-angular-adapter-standalone.js).</p>
  
  <p>i have used angularjs for data binding , underscorejs for data processing  and routing for my dynamic template. My app work well with routing in forward direction but when i use
  back button which to not carry back to my previous page. my url shown in address bar is the same that of previous page but page do not display with previous data
  i m placing all my code below</p>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>    &lt;!doctype html&gt;
  &lt;html lang="en" ng-app="work"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
      s
      &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
      &lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;link rel="stylesheet" href="css/jquery.mobile-1.3.0.min.css"/&gt;
      &lt;script src="js/components/jquery-mobile-angular-adapter-standalone.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="js/components/angular-resource.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="js/components/underscore-min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="js/app/controllers.js"&gt;&lt;/script&gt;   
      &lt;script src="js/app/services.js"&gt;&lt;/script&gt;
      &lt;script src="js/app/app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div data-role="page"&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  html use to display da
  </code></pre>
  
  <p><strong>showMenuView.html</strong></p>
  
  <pre><code>&lt;div id="menu-list" data-role="page" ng-controller="showMenuController"&gt;
      &lt;div data-role="header"&gt;
           &lt;a href="" data-icon="back" data-rel="back"&gt;Back&lt;/a&gt;
       &lt;/div&gt;
      &lt;div data-role="content"&gt;
          &lt;ul data-role="listview" data-filter="true"&gt;
              &lt;li ng-repeat="menuItem in mainMenuItems"&gt;
                  &lt;a href="/showMenu/{{menuItem.parent}}" data-rel="external" data-transition="slide" ng-click="selectMenuItem(menuItem._id)"&gt;{{menuItem.name}}&lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div data-role="footer" data-position="fixed"&gt;
          &lt;p&gt;Total {{mainMenuItems.length}} menu item&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller.js</strong></p>
  
  <pre><code>'use strict';
  
  function showMenuController($scope, $location, Data, $routeParams) {
  
  
    Data.query(function(data) {
      $scope.foo = data;
  
      $scope.mainMenuItems = _.where($scope.foo.menuItems, {parent:$routeParams.parent}); 
    });
  
  
    $scope.selectMenuItem = function (id) {
         $scope.mainMenuItems = _.where($scope.foo.menuItems, {parent:id});
     }
  
  }
  </code></pre>
  
  <p><strong>service.js</strong></p>
  
  <pre><code>angular.module('dataservices', ['ngResource']).  
   factory('Data', function($resource){
           return $resource('data/data.json', {}, {
               query: {method:'GET',isArray:false}
          });
  
  });
  </code></pre>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>angular.module('work', ['dataservices'])
         .config(['$locationProvider','$routeProvider', function($locationProvider,$routeProvider) {
              $locationProvider.html5Mode(true).hashPrefix('!');
              $routeProvider
                  //.when('/showMenu', {parent:'none',templateUrl: 'showMenuView.html', jqmOptions: { transition: 'slide'}})
                  .when('/showMenu/:parent', {templateUrl: 'showMenuView.html', jqmOptions: { transition: 'slide'}})
                  .otherwise({redirectTo: '/showMenu/none'})
                  ;
  
          }]);
  </code></pre>
  
  <p>pls help me ,thanks in advance </p>