Course lesson

Make state, computed or method private in NGRX Signal Store

Learn how to encapsulate private state and methods within NGRX Signal Store by using prefixing their keys with an underscore .

Duration
4 min
Access
Free
Transcript
Retained from source evidence

Learn how to encapsulate private state and methods within NGRX Signal Store by using prefixing their keys with an underscore _.

Note, that this only makes them private on a type level. They will still be available in the JavaScript runtime.