Ionic2 Error: “No provider for Storage”

前端 未结 4 726
孤独总比滥情好
孤独总比滥情好 2020-12-29 23:14

After reading everything I could find, and failing, I must ask here:

I am trying to use ionic2\'s Storage, just like the doc tells me to,

doc: https://ionicf

4条回答
  •  攒了一身酷
    2020-12-29 23:18

    I had the same issue. I added this to app.module.ts:

    import { IonicStorageModule } from '@ionic/storage';
    

    And, this to imports parts of the app.module.ts:

    IonicStorageModule.forRoot(),
    

提交回复
热议问题