Last active
December 11, 2018 04:18
-
-
Save alex-okrushko/ca13b4febafa11bc4efd93206b6c81f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({...}) | |
export class ProductDetailsComponent { | |
product$ = this.store.select(selectors.getCurrentProduct); | |
constructor( | |
private readonly store: Store<{}>, | |
) { | |
this.store.dispatch(new actions.FetchCurrentProduct()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment