opitzconsulting / jquery-mobile-angular-adapter

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

Cannot call method 'replace' of undefined after call "$.mobile.changePage" #221

Open giver opened 11 years ago

giver commented 11 years ago

Refer to #137

UPDATE : I have also use $location.url("page2.html"). The problem still exist.

My working environment (Problem here!!!)

app.js

function onDeviceReady() {
    angular.bootstrap(document, []);
}

function MainController($scope, $location) {
    $.mobile.changePage( 'login.html' );  // work only 1.2.0
    // $location.url('login.html') // not working in 1.3.1
}

Console error

file:///android_asset/www/jquery.mobile-1.3.1.js: Line 4351 : Uncaught TypeError: Cannot call method 'replace' of undefined
tbosch commented 11 years ago

Hi, could you create a jsfiddle or plnkr.co starting from the links on the Readme.md? This would help a lot in reproducing the problem...