typeorm / ionic-example

Example project to demonstrate TypeORM in an Ionic app
67 stars 56 forks source link

Outdated lifecycle function for ionic 5 #39

Open ayushjani opened 4 years ago

ayushjani commented 4 years ago

I was trying to use this example repo for my project but ran into the issue using the function:

ionViewDidLoad() {
    this.runDemo();
}

found in ionic-example/src/pages/home/home.ts. Seems like that function is deprecated in Ionic 5 so instead I did:

ngOnInit() {
    this.loadEvents();
}

Is this the recommended method or should I be using ionViewWillEnter()? Is there any likelihood of this example repo being updated for Ionic 5?