Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Selector<Item, Key>

Selector service provides a solution to input data, get it, select a part of it and get this selected part. It takes two typed args: Key and Item. Item is the type of the used object and Key is a subset of Item used to select a specific Item.

Type parameters

  • Item: Key

  • Key: object

Hierarchy

  • Selector

Index

Methods

items$

  • typeparam

    Parameters

    Returns Observable<Item[]>

    An Observable sequence that describes updates of the stored items.

selectItem

  • typeparam

    Parameters

    Returns Promise<void>

    A Promise that resolves without specific information. Can be rejected in case of invalid argument is passed. Can be rejected in case of the item you try to select is not in the stored items. Can be rejected in case of the provided key is not included in the item model.

selectedItem$

setItems

  • typeparam

    Parameters

    Returns Promise<void>

    A Promise that resolves without specific information. Can be rejected in case of invalid argument is passed.