标签: angular typescript indexeddb
我试试这个:
`
saveTasksList() { this.storage.setItem('tasks', this.tasksList).subscribe( () => {}, () => {}); } loadTasksList() { this.tasksList = JSON.stringify(this.storage.getItem('tasks')); }
,但是:
ERROR in src/app/app.component.ts(42,7): error TS2322: Type 'Observable' is not assignable to type 'string[]'.
所有代码:https://pastebin.com/qfTLdRGd