SAP Spartacus 捕捉 PageEvent 的方式
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus 捕捉 PageEvent 的方式
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
只需要注入 EventService,調用其 get 方法,監聽 PageEvent 即可。
export class AppModule { constructor(private config: DebugConfig,private actions$: Actions,private cartService: ActiveCartService,private store: Store<StateWithMultiCart>,private eventService: EventService){ this.eventService.get(PageEvent).subscribe((x) => console.log('Jerry Page Event: ', x));最后的效果:
總結
以上是生活随笔為你收集整理的SAP Spartacus 捕捉 PageEvent 的方式的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: UC 伯克利发布大语言模型排行榜,Vic
- 下一篇: SAP Commerce Cloud P