Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.store
- .select(s => s.products && x.products.name)
- .filter(name => !!name)
- .subscribe(name => {
- // If there is a `name` in the store, it will run immediately
- // I only want to get the `name` if a new value comes after subscribing
- console.log(name);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement