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
fix(forms): Allow NonNullableFormBuilder
to be injected.
#45904
Conversation
@AndrewKushnir I'm actually unsure of how to unit test this, do any suggestions come to mind? |
You can add a test like this:
I'd propose adding a similar test for |
e8ccb79
to
6ba5fd4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 Just left a couple minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
Currently running a standard presubmit. |
merge-assistance: I'm not sure why pullapprove is fighting me, this is good to go |
@dylhunn could you please update the code based on #45904 (review)? |
Based on early feedback, calling `fb.nonNullable.group(...)` continues to be clunky for a form with many such groups. Allowing `NonNullableFormBuilder` to be directly injected enables the following: ``` constructor(private fb: NonNullableFormBuilder) {} ```
@AndrewKushnir Whoops, now fixed. |
This PR was merged into the repository by commit 43ba4ab. |
Based on early feedback, calling `fb.nonNullable.group(...)` continues to be clunky for a form with many such groups. Allowing `NonNullableFormBuilder` to be directly injected enables the following: ``` constructor(private fb: NonNullableFormBuilder) {} ``` PR Close #45904
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Based on early feedback,
fb.nonNullable.group(...)
continues to be clunky for a form with many such groups. AllowingNonNullableFormBuilder
to be directly injected enables the following: