Delay on state change from page to page


#1

Hi there Ionic Team!

I’m using $state.go(‘app.payment’); to navigate to each page in my app.When this get activated it takes about 10 sec to load the particular page. The page’s controller activates as soon as state changed. But there is a delay on rendering the page.I know this is a known issue but i couldn’t find a solution.Sorry if i’m repeating a question.
Appreciate any help.


#2

if there are some watchers which start on controller init, it will take time.

use $scope.$on(’$ionicView.enter’) events to make the loading efficient or reduce the watchers.


#3

@gaurav_ch thanx for your reply.i have used only one watcher in my controller and how can we use $ionicView.enter to increase loading efficiency?