i store some data in storage when i dimiss modal storage show old data here is my ts code
update(){
let udata = {
"userid": this.userid,
"deviceid": this.deviceid,
"name": this.name,
"contactno": this.contactno,
"panumber": this.PA,
"blockname": this.blockname,
"societyaera": this.SAname,
"florunit": this.FU,
}
this.service.post("http://localhost/smartvege/adminpanel/API/updatecustomer.php?access_tocken=ae189b0987d4abc138197a175b488db5",udata).then(data => {
console.log(data);
let updatedata ={
"userid": this.userid,
"deviceid": this.deviceid,
"name": this.name,
"contactno": this.contactno,
"panumber": this.PA,
"blockname": this.blockname,
"societyaera": this.SAname,
"florunit": this.FU,
};
this.storage.set("userdata", updatedata);
console.log(this.service.userLData);
this.viewCtrl.dismiss({istrue:true});
})
}
and here is my provoider code
this.storage.get("userdata").then(
(res)=>{
this.userLData = res;
console.log(res)
});