I am currently working on a project using Ionic. While testing the app in the browser, I encountered an issue where the back button disappears after navigating to the child state of one view and then refreshing the page. Upon inspecting the "$ionicHistory" object, I noticed that the "backView" property is null.
app.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('app', {
url: '/app',
abstract: true,
templateUrl: 'templates/tabs/tabs.html'
})
.state('app.parent', {
url: '/parent',
views: {
'tab-parent': {
templateUrl: 'templates/parent/parent.html'
}
}
})
.state('app.parent.child', {
url: '/child',
views: {
'tab-parent@app': {
templateUrl: 'templates/parent/child.html'
}
}
})
$urlRouterProvider.otherwise('/app/parent');
});
Can anyone provide guidance on how to resolve this issue?
Appreciate any help. Thank you.