W3cubDocs

/Angular 10

defineInjectable

const deprecated

Deprecated: in v8, delete after v10. This API should be used only be 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;

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/defineInjectable