Course lesson

Use an external Angular provider within withComputed or withMethod

In this lesson, you’ll learn how to integrate external services with NGRX Signal Store with Angular’s inject API.

Duration
6 min
Access
Free
Transcript
Retained from source evidence

In this lesson, you’ll learn how to integrate external services with NGRX Signal Store with Angular’s inject API.

To make this work we'll be covering:

  • Angular's injection context, which is the scope within which Angular’s dependency injection (DI) mechanism is active and capable of providing dependencies.
  • How we inject the service in a default value to ensure that the injection happens properly within the injection context.