saveContact(){
let d={“fname”:this.fname,
“sname”:this.sname,
“cname”:this.cname,
“phone”:this.phone,
“mob”:this.mob,
“email”:this.email,
“hphone”:this.hphone};
this.st.set(“k”, d);
this.event.publish("newuser");
}
and
refreshdata()
{
let loder = this.load.create({
content: “Loading Fresh Data…”
});
loder.present();
let items=this.st.get("k").then((Value) => {
if (Value)
{
this.name = Value.fname;
this.phone = Value.phone;
loder.dismiss();
} else
{
loder.dismiss();
}
/* }, (erorr) => {
loder.dismiss(); */
});
}
if i try to save contact it will display only the present contact saved.previos one will not save.