Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在浏览器控制台中做这样的事情:
ng.probe($('app-root')).injector.get(AuthenticationService)
这不起作用,因为AuthenticationService没有发现令牌。在我的代码中,我会写import { AuthenticationService } from '@lib';如何从控制台中的注入器获取服务?
AuthenticationService
import { AuthenticationService } from '@lib';