For anybody new coming to this, ionViewLoaded()
is no longer a valid lifecycle event.
See https://ionicframework.com/docs/v2/api/navigation/NavController/#lifecycle-events for a full list of events. It seems that what was ionViewLoaded
is now ionViewDidLoad
.