我首先想到的是我的路线中的canActivate,因为我需要注入一个服务,这对我来说似乎很自然。我实现了这个保护并将其应用于area组件,这里的问题是当canActivate为false时,因为导航停止了。我一直在读关于使用urlMatchers的文章,但是我不认为我有段中需要的所有信息,使用Angular 2 different components with same route之类的东西注入服务对我来说似乎是错误的,而且如果我尝试直接导航到网址而不是通过主页导航,
services.AddTransient<Itransient, Transient>();如果我试图向singleton注入作用域服务,我应该(并且确实)得到一个异常(我知道原因): {
class Singlet : ISingletonISingleton生命周期: Singleton ImplementationType
我已经为全球使用设置了一个防护装置。每当我试图将我的用户服务注入到保护程序中时,在编译- Nest can't resolve dependencies of the VerifyUserGuard (?).Please make sure that the argument dependency at index [0] is available in the UserModule context.时就会得到这个错误我的用户服务是用户模块的一部分,在用户<e