Angular Microfrontend如何在Shell应用程序中设置Cookie?
我将一个共享的小部件(例如:日历小部件)视为一个微观前端,可以在我们组织中的多个应用程序中消费。消耗的应用程序按需加载了我们的微观前端,并且在加载后,作为微观前端,我们没有任何方式与消费应用程序进行通信。我想在消费的应用程序端设置cookie或localStare,该如何将cookie或localstorage变量从我们的共享窗口小部件(微货式)设置为消费应用程序。请建议。
I am exposing a shared widget (ex: calendar widget) as a micro frontend that can be consumed across multiple applications in our organization. The consumed application loads our micro frontend on demand and after it gets loaded, as micro frontend, we don't have any way to communicate with the consuming application. I would like to set a cookie or localstorgage on the consumed application end, how can I set a cookie or localstorage variable from our shared widget (microfronetned) to the consumed application. Kindly advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在Ngoninit Hook中进行共享应用程序中的事件,并在Shell中缓存该事件吗?
you can triger event in ngOnInit hook for shared app and cache the event in shell right?