Skip to content
masterclass Buddy

Angular · Decorator

@Injectable

@Injectable marks a class so Angular can generate the metadata needed to create its dependencies during injection. Its options can define the injector scope for the provider.

Last updated

Syntax

@Injectable(options?: { providedIn: Type<any> | 'any' } & InjectableProvider);
@Injectable(options?: { providedIn: 'root' | 'platform' | null } & InjectableProvider);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • InjectableProvider
  • Injector
  • inject

Source: Injectable • Angular. Checked 2026-11-03.