I am trying to make a note app by ionic where i am using storage plugin. i set a key
private note: note[] = [
title: string;
note: string;
];
constructor(private storage: Storage) {
}
addNote(note: note) {
this.note.push(note);
this.storage.set('note', this.note);
}
getNote() {
return this.storage.get('note')
.then(
(note) => {
this.note= note== null ? [] : note;
return this.note.slice();
}
)
}
where all data are array object, like
(3) [Object, Object, Object]
0:Object
1:Object
2:Object
length:3
I just want to remove a single array object inside this note array. I tried this.storage.remove(note[index]);
but its dont work.