Help Angular by taking a 1 minute survey!Go to surveyHome

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
    
Parameters
token Type | InjectionToken
flags InjectFlags

Optional. Default is InjectFlags.Default.

Returns

T | null