my code
this.nativeStorage.setItem('item', { service_id: item.id, count_order: this.count_order })
.then(
() => alert("ok"),
error => alert(error)
);
my code
this.nativeStorage.setItem('item', { service_id: item.id, count_order: this.count_order })
.then(
() => alert("ok"),
error => alert(error)
);
And this doesn’t work?
If setItem
only accepts strings, JSON.stringify
is your friend.
Also, is there a reason why you use NativeStorage instead of just Ionic Storage?
Additionally, I’m not seeing any arrays here.
Probably another poor developer that was raised on PHP as I was