ionic-team / ionic-team/ionic-storage

Update README for Angular users

Open
#318 1 comment 15 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
456
Forks
97
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.