Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Execute code when view is entered from "below" or "beside" on the view stack but not from "above"

$
0
0

@Sujan12 wrote:

I have this app that has 4 views:

login   ->   list   ->  detail
        ->   misc

Now I'm looking for some code that reloads the view list when it is entered from login or misc, but not when I navigated to detail and use the back button to get back to list. Any idea how I could solve this?

I thought about using $ionicView events, but couldn't find out how to differentiate between where the user comes from:

$scope.$on('$ionicView.beforeEnter', function() {
  reload();
});

This (or with $ionicView.enter) reloads every time the view is shown :confused:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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