-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
The introduction of standalone components in Angular v14 has changed how dependencies are added. Providing an updated example would be helpful for users. Here's a sample of how this can be done:
In the main.js file:
import { IonicStorageModule } from '@ionic/storage-angular';
import { Drivers } from '@ionic/storage';
//...
bootstrapApplication(AppComponent, {
providers: [
//...
importProvidersFrom(IonicStorageModule.forRoot({
name: "exampledb",
driverOrder: [Drivers.IndexedDB]
}))
],
});
chafikchaban, brandon-bt, nkilders, godenji, rvcroffi and 10 more
Metadata
Metadata
Assignees
Labels
No labels