Hello,
I load the states (routes) remotely. They are loaded correctly when the app loads for the 1st time but I’d like to reload them when the app resumes (on IOS, the user clicks the home button and relaunches the app)
$ionicPlatform.on('resume', function() {
// Reload the routes
});
Unfortunately, I can’t do this inside “on resume”:
$state.state('test123', {
id: 'test123',
url: '/test123',
templateUrl: '/test123.html',
controller: 'Test123Ctrl'
});
Thanks for your help