Howto handle forms in a Angular 4 + Redux setup

Viewed 2960

I successfully implemented @angular-redux/store and redux in my minimal Angular 4 boilerplate. I do understand the idea behind the Redux loop, but I have a hard time to get me past the simple counter increment button examples.

At the moment I have build a simple login form as a component that needs to grab a JWT token from my API. I don't want to make it too complex, so for now I don't want to store the form state in the store, since a form component doesn't effect other components, right?

So when I hit the submit button, my login.component.ts will handle the validation and http request to my API. But a form submit is also an action, so when does Redux comes in to play here?

3 Answers
Related