Which is better to use Angular Lifecycle Hook or Ionic Lifecycle hooks specially for initialization when creating a hybrid app using Ionic 4?
Angular lifecycle hook - ngOnInit
ngOnInit() {
this.getData();
}
Ionic lifecycle hook - ionViewWillEnter
ionViewWillEnter() {
this.getData();
}