Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49185

How to solve the browser history?

$
0
0

@JiaoXiangNing wrote:

I change the state in the button click event, like this$scope.FindScenics = function () {
$state.go("scenicList");
};

I use this style to change the state from home-state to scenicList-state, and back to home-state, and I change to scenicList-state again, but the scenicList-state is not been saved, it reloads.
The app.js is following:
`$stateProvider.state("home", {
url: '/home',
views: {
"homeView": {
templateUrl: 'templates/home.html',
controller: "homeController"
}
}
});

$stateProvider.state("scenicList", {
url: '/scenicList',
views: {
"homeView": {
templateUrl: 'templates/scenicFiles/scenicList.html',
controller: 'scenicCtrl'
}
}
});`

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>