@ngrx/signals: No provider for SignalStore #4150
-
I am trying to use ngrx signals and I see error in console See the reproduction here: https://stackblitz.com/edit/stackblitz-starters-s2mw8f?file=src%2Fmain.ts |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is for the people facing similar issue and looking for 101 of the Signal Store. Add
Global Store:Specifying
|
Beta Was this translation helpful? Give feedback.
This is for the people facing similar issue and looking for 101 of the Signal Store. Add
EmployeeStore
toproviders
in the component and it will solve the issue.Global Store:
Specifying
{ providedIn: 'root' }
will define it in root context and will create globalEmployeeStore
. This can be used in any component without adding in providers