@leonardofmed wrote:
Currently I’m using events to access MyComponent’s functions from MyPage. I’m using this way:
In MyPage:
randomFunction() { this.events.publish('functionCall:myPageRandomFunction'); }
In MyComponent:
this.events.subscribe('functionCall:myPageRandomFunction', (eventData) => { //Doing things here }
How I’m supposed to replace this methodology now that the events is deprecated? Should I use Observables? If yes, how can I ensure the same functionality?
Posts: 2
Participants: 2