Skip to content

Commit

Permalink
fix(forms): Form provider FormsModule.withConfig return a FormsModule (
Browse files Browse the repository at this point in the history
…#48526)

Because of a transitive dependency, FormsModule.withConfig wasn't providing FormModule.

fixes: #48519

PR Close #48526
  • Loading branch information
JeanMeche authored and alxhub committed Jan 6, 2023
1 parent 61fc474 commit 8aa8b4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goldens/public-api/forms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export interface FormRecord<TControl> {
export class FormsModule {
static withConfig(opts: {
callSetDisabledState?: SetDisabledStateOption;
}): ModuleWithProviders<ReactiveFormsModule>;
}): ModuleWithProviders<FormsModule>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<FormsModule, never>;
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/form_providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class FormsModule {
*/
static withConfig(opts: {
callSetDisabledState?: SetDisabledStateOption,
}): ModuleWithProviders<ReactiveFormsModule> {
}): ModuleWithProviders<FormsModule> {
return {
ngModule: FormsModule,
providers: [{
Expand Down

0 comments on commit 8aa8b4b

Please sign in to comment.