Created
September 18, 2017 16:58
-
-
Save philipszdavido/2a23febff0f6663d6f392741e530b719 to your computer and use it in GitHub Desktop.
This file contains 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
//src/app/app.component.ts | |
constructor(private store: Store<fromArticle.State>){ | |
this.store.dispatch(new fromAction.AddArticleAction({id:1,link:'http:angular.io',title:'Angular',points:0})) | |
this.store.select(fromArticle.getArticles).subscribe(v => { | |
console.log(v) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment