Page Reload

Hey everyone, I’m facing problem with page reload when data is empty. here i get the data from rest service. whenever got the data as null at that time call the service again show the data.
Before i’m trying with $route.reload() but not working it shows an error as routeProvider not defined.

please help to solve this issue.

Thanks in advance…

$route.reload is for angularjs router, ionic uses ui-router which is different, the equivalent should be:

$state.go($state.current, {}, {reload: true});