this.nativeStorage.getItem(‘userDetailes’)
.then(
data =>{
if(data.id_token==null){
}
else
{
console.log(data);
this.appService.getUserId(JSON.parse(data.user))
.subscribe(data => {
console.log(data);
var userLikedItem={
userId:data.user.id,
offerId:offer._id
};
this.appService.addToUserLikedItems(userLikedItem)
.subscribe(data => {
console.log(data);
});
});
}
it’s actually displaying object but the problem is i can’t be able to access individual property.It’s showing undefined.