SAP Spartacus RouteGuard路由守卫之CmsPageGuard
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus RouteGuard路由守卫之CmsPageGuard
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
每個cms Component都能配置guards.
從后臺加載CMS Component for a page之后,所有該Component的guards會執行。
從CmsPageGuard的實現代碼能夠看出,一個Spartacus頁面能否路由,取決于下面三個API的執行結果:
(1) this.protextedRoutesGuard.canActivate
(2) this.cmsService.getPage
(3) this.service.canActivatePage
總結
以上是生活随笔為你收集整理的SAP Spartacus RouteGuard路由守卫之CmsPageGuard的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C语言system()函数的用法[通俗易
- 下一篇: 阿里巴巴矢量图标库_阿里 矢量图(168