I am using NgRx in my Angular project. I want to access the products that are stored in my store from my ProductsComponent.
ProductsComponent.ts
...
import { select, Store } from '@ngrx/store';
...
constructor(private store: Store<any>) {}
I'm wondering what is the differences between:
public products = this.store.select(selectProducts);
and
public products = this.store.pipe(select(selectProducts));
and which one I should use.