-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
FormBuilder Date problems in v.3 #109
Comments
this is not how You use form groups, it should be:
https://angular.io/api/forms/FormBuilder#group |
Got the point, thanks. I used to do it like
but for some reason it failed recently - will check back. |
Both cases no longer work. Am I missing syntax update? |
@strigefleur As it states in the docs if you need to use a interface TestDateModel {
id: number;
content: string;
date: FormControl<Date>;
}
builder.group({
id: 1,
content: 'pew',
date: builder.control(new Date()),
}); |
Is this a regression?
Yes
Description
Having the code like
gives compiler error.
Commenting out the
Date
typed prop "helps".Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
Anything else?
Sorry, can't provide quick reproduction - StackBlitz still have @ngneat/reactive-forms v.2.0 cached.
Last version we used before 3.0 was ~1.7.3
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: