-
Notifications
You must be signed in to change notification settings - Fork 110
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
question: Errors never updated ? #276
Comments
Okay I've finally suceeded but I think the docs need a good refresh with the usage of the new NgRx syntax. I have found https://github.com/MrWolfZ/ngrx-forms/blob/master/example-app/src/app/simple-form-ngrx8/simple-form-ngrx8.reducer.ts (but not right away as I did not know where to search) and it's not using my reducer in case someone needs :
|
Hello @MrWolfZ , Thanks for the amazing lib,
I have a problem with the validation, I'm trying to implement really basic validation, using the docs and the examples in the repo but I don't understand how it works. Maybe because I'm using the "new" ngrx syntax with functions.
My reducer is the following :
I created the validators as said in the FAQ (https://ngrx-forms.readthedocs.io/en/master/faq/) combining the declaration of the validators and the creation of the form. But no matter what I type in my input it's always in error, also I can't seem to find the interface of the error object.
From what I've searched in this repo issues I think I should call the validators inside my reducer but I can't seem to find examples that uses createReducer() function. Can't find inside the doc as well
Can you help ?
The text was updated successfully, but these errors were encountered: