0
I am trying to make an appointment in the backend and with the result save in a localstorage. I am using Angular5.
valor:any;
validar(){
this.storage.get('refresh').then(val => {
this.loginProvider.refresh(val).subscribe(
res => {
this.valor=res.nome;
this.storage.set('token', this.valor);
},
error => { }
);
});
}
when testing gives error: Typescript Error Property 'name' does not exist on type 'Object'.
Can someone help me with this? Thanks