@wmccafferty wrote:
Hello,
The following code stopped working with the latest Ionic:
public onWhateverEvent() { console.debug('triggered'); } public authenticateUser(accessToken): boolean { console.debug('about to subscribe'); this.events.subscribe("whatever", this.onWhateverEvent); console.debug('about to publish'); this.events.publish("whatever"); }
Running this code results in the following error: TypeError: this._channels is undefined
Is there a new way to publish/subscribe?
Thank you,
Billy McCafferty
Posts: 2
Participants: 1