Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling service for http request in component #57

Open
nakulthebuilder opened this issue Apr 26, 2017 · 0 comments
Open

Calling service for http request in component #57

nakulthebuilder opened this issue Apr 26, 2017 · 0 comments

Comments

@nakulthebuilder
Copy link

Hi there,
Great repo, I am using it to try to learn about ngrx/store. I have a question regarding usage of the trip.service in your edit-trip.component. In your onSubmit() method you seem to making a direct async post request to your server rather than dispatching to the store using the SAVE_TRIP action type in order for the async request to be made in the effects module. I was just wondering why this choice was made.
Thanks and keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant