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

defineInjectable

已弃用: in v8, delete after v10. This API should be used only by generated code, and that code should now use ɵɵdefineInjectable instead.

const defineInjectable: <T>(opts: { token: unknown; providedIn?: Type<any> | "root" | "platform" | "any"; factory: () => T; }) => never;
      
      const defineInjectable: <T>(opts: { token: unknown; providedIn?: Type<any> | "root" | "platform" | "any"; factory: () => T; }) => never;