Merge branch 'main' into chore-sync-next-main

This commit is contained in:
Brandy Carney
2024-06-04 17:02:54 -04:00
57 changed files with 2626 additions and 2213 deletions

View File

@ -52,14 +52,18 @@ const DECLARATIONS = [
IonMaxValidator,
];
type OptInAngularFeatures = {
useSetInputAPI?: boolean;
};
@NgModule({
declarations: DECLARATIONS,
exports: DECLARATIONS,
providers: [AngularDelegate, ModalController, PopoverController],
providers: [ModalController, PopoverController],
imports: [CommonModule],
})
export class IonicModule {
static forRoot(config?: IonicConfig): ModuleWithProviders<IonicModule> {
static forRoot(config: IonicConfig & OptInAngularFeatures = {}): ModuleWithProviders<IonicModule> {
return {
ngModule: IonicModule,
providers: [
@ -73,6 +77,7 @@ export class IonicModule {
multi: true,
deps: [ConfigToken, DOCUMENT, NgZone],
},
AngularDelegate,
provideComponentInputBinding(),
],
};