Skip to content

6.2.8.1. Specialized ViewModels & Coordinators

The specialized primitives are not alternate container shapes. Each one solves a workflow problem that occurs in many apps, and it wraps or coordinates other VM state. It does not replace the core ownership families. If the need is only "a leaf with one more property", use a plain ComponentVM with a command or a property instead.

Specialized ViewModel Coordinator Map

HTML · SVG · PNG

6.2.8.1.1. Choose A Page

  • FormVM: edit a snapshot of a model, validate it, and approve or revert it.
  • DiscriminatorVM: switch the active case, such as an edit or preview mode, and keep the selection observable.
  • NotificationVM and ConfirmationVM: hold render-ready notification state from the notification hub.
  • ModalVM: complete a presented modal workflow with a result.

The Notes Workspace editor composes FormVM and DiscriminatorVM, and its notifications pane projects pending notifications into NotificationVM instances. Each page links its example files.