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
Refer to #137
UPDATE : I have also use
$location.url("page2.html")
. The problem still exist.My working environment (Problem here!!!)
Previous working environment (Working fine)
Snippet of code
app.js
Console error