Skip to content

Commit 29c296f

Browse files
committed
fix(material/radio): remove deprecated factory functions
Removes factory functions that we had marked as deprecated for v21. These functions aren't necessary since we switched to standalone. BREAKING CHANGE: * `MAT_RADIO_DEFAULT_OPTIONS_FACTORY` has been removed.
1 parent e1b6892 commit 29c296f

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

goldens/material/radio/index.api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ import { QueryList } from '@angular/core';
2121
// @public (undocumented)
2222
export const MAT_RADIO_DEFAULT_OPTIONS: InjectionToken<MatRadioDefaultOptions>;
2323

24-
// @public @deprecated
25-
export function MAT_RADIO_DEFAULT_OPTIONS_FACTORY(): MatRadioDefaultOptions;
26-
2724
// @public
2825
export const MAT_RADIO_GROUP: InjectionToken<MatRadioGroup>;
2926

src/material/radio/radio.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,13 @@ export const MAT_RADIO_DEFAULT_OPTIONS = new InjectionToken<MatRadioDefaultOptio
9494
'mat-radio-default-options',
9595
{
9696
providedIn: 'root',
97-
factory: MAT_RADIO_DEFAULT_OPTIONS_FACTORY,
97+
factory: () => ({
98+
color: 'accent',
99+
disabledInteractive: false,
100+
}),
98101
},
99102
);
100103

101-
/**
102-
* @docs-private
103-
* @deprecated No longer used, will be removed.
104-
* @breaking-change 21.0.0
105-
*/
106-
export function MAT_RADIO_DEFAULT_OPTIONS_FACTORY(): MatRadioDefaultOptions {
107-
return {
108-
color: 'accent',
109-
disabledInteractive: false,
110-
};
111-
}
112-
113104
/**
114105
* A group of radio buttons. May contain one or more `<mat-radio-button>` elements.
115106
*/

0 commit comments

Comments
 (0)