Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. this.store
  2. .select(s => s.products && x.products.name)
  3. .filter(name => !!name)
  4. .subscribe(name => {
  5. // If there is a `name` in the store, it will run immediately
  6. // I only want to get the `name` if a new value comes after subscribing
  7. console.log(name);
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement