Ionic 4 Lifecycle