Want to run controllers to render the view before actually going to the page

Hello guyz,

I want to know if i can run all controllers from just home page without going to other pages since I am applying a lot of changes every time a page is loaded by ionicview.enter or beforeenter and it is working but the changes can be noticed by
human eye since it takes some time while the changes are applied. I want the view to be prepped and ready when I go to home page.
I want the controllers to run and render the view before one actually go to that page.
please help me

You can use page change event. In ionic it is considered as state change event. So put the code in statechangestart event that will be be executed before the new state change occurs

$rootScope.$on(’$stateChangeStart’,function(event, toState, toParams, fromState, fromParams){

});