Is possible to call a function of another class?

Hi, i have a two classes, index.ts and home.ts,
if I wanted to call a function from home.ts how I can do it?

i try with @ViewChild(HomePage) homePage: HomePage;

and call homePage.ngOnInit(); but doesn’t work


You could use events

Here’s an example of the Events service.


Thank You for this solution :slight_smile:

Thank you for this solution. Now i will see this video!