Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 701 Bytes

redux-select.md

File metadata and controls

26 lines (20 loc) · 701 Bytes

reduxSelect

Selects a value from the state directly out of your view. For the selection it will use your ReduxStateProvider's select method.

Using a relative selector, second argument needed (recommended)

<ul>
  <li *ngFor="let todo of ('todo/listItems' | reduxSelect | async)">
    {{todo}}
  </li>
</ul>

Select the same value using a absolute selector, no second argument needed (avoid)

<ul>
  <li *ngFor="let todo of ('/some-state-name/todo/listItems' | reduxSelect | async)">
    {{todo}}
  </li>
</ul>