Options
All
  • Public
  • Public/Protected
  • All
Menu

The ModelStore is in charge of providing access to the data model. It provides the CRUD operations over the model. To protect the integrity of the data it initially returns immutable data. If needed, you can request a mutable object.

Hierarchy

  • ModelStore

Index

Accessors

Methods

Accessors

  • get dataMap(): any
  • get rootPath(): string
  • Returns the current root path.

    Returns string

    Model root path.

Methods

  • getData<M>(path?: null | string, immutable?: boolean): undefined | M
  • Returns the data for the given path. If no path is provided, it returns the whole data.

    Type parameters

    Parameters

    • Optional path: null | string
    • immutable: boolean = true

    Returns undefined | M

    Data for given path, whole data or undefined.

Generated using TypeDoc