Last active
March 23, 2021 07:36
-
-
Save mfp22/23f3fb110ef0d966211ca976ff1af301 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
this.store.dispatch({ | |
type: "SAVE_DATA", | |
payload: data | |
}); | |
this.saveData(data).pipe( // POST request to server | |
map(res => this.store.dispatch({type: "DATA_SAVED"})), | |
).subscribe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment