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

inject

Deprecated: in v8, delete after v10. This API should be used only be generated code, and that code should now use ɵɵinject instead.

const inject: { <T>(token: Type<T> | InjectionToken<T>): T; <T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T; };
      
      const inject: { <T>(token: Type<T> | InjectionToken<T>): T; <T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T; };