• Selects an observable from the store, and attaches it to the decorated property.

     import { select } from '@angular-redux2/store';

    class SomeClass {
    @Select(['foo','bar']) foo$: Observable<string>
    }

    Type Parameters

    • T

    Parameters

    • Optional selector: Selector<any, T>

      A selector function, property name string, or property name path (array of strings/array indices) that locates the store data to be selected

    • Optional comparator: Comparator

      Function used to determine if this selector has changed.

    Returns PropertyDecorator

Generated using TypeDoc