onOpenNotification = function (event) {
this.events.publish('GET_MESSAGE');
})
//这段是在app.components.ts
this.event.subscribe('GET_MESSAGE', () => {
this.rootPage = MsgPage;
})
这样始终不行,请问为什么?
onOpenNotification = function (event) {
this.events.publish('GET_MESSAGE');
})
//这段是在app.components.ts
this.event.subscribe('GET_MESSAGE', () => {
this.rootPage = MsgPage;
})
这样始终不行,请问为什么?
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
3 回答6.5k 阅读
4 回答2.2k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
3 回答873 阅读✓ 已解决
3 回答1k 阅读✓ 已解决
你的方法使用错误,具体可以参考官方文档的写法,具体见:Navigating from the Root component