Ways a controller know which page before its

Hi there. I’m just wondering is there anyway a controller can know which page the user is on before its. For example, I have 3 pages, A, B and C. I want my controller in page C to run if the user is coming from page B and it will not run if the user is coming from page A. So, the controller must know where the user come from. Is there a way?

Hi there! Might want to check http://ionicframework.com/docs/api/service/$ionicHistory/