Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giver opened this issue Jul 23, 2013 · 1 comment
Open

Comments

@giver
Copy link

giver commented Jul 23, 2013

Refer to #137

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

My working environment (Problem here!!!)

  • JQM 1.3.1
  • jquery-mobile-angular-adapter - v1.3.2-SNAPSHOT - 2013-06-27
  • AngularJS 1.0.7

Previous working environment (Working fine)

  • JQM 1.2.0
  • jquery-mobile-angular-adapter -1.2.0
  • AngularJS 1.0.6

Snippet of code

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
Copy link
Contributor

tbosch commented Aug 1, 2013

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants