填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

INJECTOR

一个 InjectionToken,用于获取当前 InjectorcreateInjector() 式的注入器。

An InjectionToken that gets the current Injector for createInjector()-style injectors.

查看"说明"...

      
      const INJECTOR: InjectionToken<Injector>;
    

说明

请求此令牌而不是 Injector 可使 StaticInjector 能在项目中摇树优化掉。

Requesting this token instead of Injector allows StaticInjector to be tree-shaken from a project.