最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

signals - Angular 17: Wait for queue to change inside RouteGuard - Stack Overflow

programmeradmin3浏览0评论

I have a service that has two different signals: If signal A changes, it will add a value to an array, if signal B changes it will remove the first value of the array. I am using a guard that manages what pages the user is allowed to visit depending on certain conditions, one being the queue that i just desribed. If the queue is not empty, i want to wait a certain time for my queue to be empty before i throw an error. How can i achieve this?

发布评论

评论列表(0)

  1. 暂无评论