change:function(value){
app.data.city=value[0];
// or
// localStorage.setItem('city',JSON.stringify(value[0]))
...
...
}
later
console.log(app.data.city)
// or
// JSON.parse(localStorage.getItem('city'));
change:function(value){
app.data.city=value[0];
// or
// localStorage.setItem('city',JSON.stringify(value[0]))
...
...
}
later
console.log(app.data.city)
// or
// JSON.parse(localStorage.getItem('city'));
thanks I think using app.data work the best for all things… big thanks