inject

inject<T>(token: Type<T> | InjectionToken<T>, flags: InjectFlags = InjectFlags.Default): T | null
      
      inject<T>(token: Type<T> | InjectionToken<T>, flags: InjectFlags = InjectFlags.Default): T | null
    
参数
token Type | InjectionToken
flags InjectFlags

可选. 默认值是 InjectFlags.Default.

返回值

T | null