onOpenNotification = function (event) { this.events.publish('GET_MESSAGE'); })
//这段是在app.components.ts
this.event.subscribe('GET_MESSAGE', () => { this.rootPage = MsgPage; }) 这样始终不行,请问为什么?
你的方法使用错误,具体可以参考官方文档的写法,具体见:Navigating from the Root component