Skip to content

Update README for Angular users #318

Description

@veronicadip

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]
    }))
  ],
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions