mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Fixed default route navRouter back button issue
This commit is contained in:
2
dist/js/ionic-angular.js
vendored
2
dist/js/ionic-angular.js
vendored
@@ -1476,7 +1476,7 @@ angular.module('ionic.ui.navRouter', ['ionic.service.gesture'])
|
||||
// going forwards or back
|
||||
$scope.$watch(function () { return $location.path() }, function (newLocation, oldLocation) {
|
||||
if($rootScope.actualLocation === newLocation) {
|
||||
if(oldLocation == '' || newLocation == '/') {
|
||||
if(oldLocation == '') {// || newLocation == '/') {
|
||||
// initial route, skip this
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ angular.module('ionic.ui.navRouter', ['ionic.service.gesture'])
|
||||
// going forwards or back
|
||||
$scope.$watch(function () { return $location.path() }, function (newLocation, oldLocation) {
|
||||
if($rootScope.actualLocation === newLocation) {
|
||||
if(oldLocation == '' || newLocation == '/') {
|
||||
if(oldLocation == '') {// || newLocation == '/') {
|
||||
// initial route, skip this
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user