State Management

LocalStorage

The application uses browser localStorage for state persistence:

Stored Data:

Observable Pattern (RxJS)

Services use RxJS Observables for reactive data flow:

// Example from ApiService
return this.http.post<any>(OSAS_API + '/auth/signin', payload, { headers });

Components subscribe to Observables:

this.apiService.getUser(username, password).subscribe(
  response => { /* handle response */ },
  error => { /* handle error */ }
);

Service State

Services maintain application state:


Revision #1
Created 24 February 2026 07:14:48 by ondeliveloper
Updated 24 February 2026 07:15:12 by ondeliveloper