Angular project using NgRx pattern to manage state of a system

user.state.ts 248B

12345678910
  1. import { User } from "src/app/shared/models/user.model";
  2. import { MsgState } from "../msg.state";
  3. //create a state
  4. export class UserState {
  5. currentUser!: User | null;
  6. usersList!: User[];
  7. msgState!: MsgState;
  8. userServerErrorMsg!: string;
  9. }

Powered by TurnKey Linux.