opitzconsulting / jquery-mobile-angular-adapter

jquery mobile angular adapter
MIT License
517 stars 114 forks source link

Page changes on orientation change #222

Open olegtim opened 11 years ago

olegtim commented 11 years ago

First, thank you for all the work on this adapter. Huge time saver!

I am using 1.3.2-SNAPSHOT with Jqm 1.3.1, AngularJS 1.0.6 and Phonegap 2.9 on Android device. Every time there is an orientation change, page/location changes to default route.

  1. html5Mode is left default
  2. Pages are separate template files
  3. Routing looks like this:
$routeProvider.
    when('/login', {templateUrl: 'login.html'}).
    when('/event', {templateUrl: 'events.html', jqmOptions: { transition: 'flip' }}).
    when('/event/:eventId/attendee', {templateUrl: 'attendees.html', jqmOptions: { transition: 'flip' }}).
    otherwise({redirectTo: '/event'});
  1. When I am at /event/111111/attendee page, changing device orientation, redraws /event page instead.

I had to disable orientation change for now to avoid the issue. Any ideas?

tbosch commented 11 years ago

Sorry, not immediately. Could you create a jsfiddle / plnkr for this? (The Readme.md contains links to a starting point).