I am trying to access a field inside a object but it is giving me an error.
my object is like,
{
name: "john doe",
avatar: {
original: 'default.png',
thumb: 'thumb-default.png'
}
}
here i can access name but using this.data.currentUser.value().name but can't access avatar.thumb
I am trying to access a field inside a object but it is giving me an error.
my object is like,
{
name: "john doe",
avatar: {
original: 'default.png',
thumb: 'thumb-default.png'
}
}
here i can access name but using this.data.currentUser.value().name but can't access avatar.thumb