0👍
✅
The child component doesn’t know about managers
and employees
, it only knows userResultData
. You need to explicitly set the managers
and employees
properties in your data
function.
data() {
return {
userResultArrayData: null,
managerUser: null,
employeeUser: null,
employeeAndManagerUser: null,
employees: this.userResultData.employees,
managers: this.userResultData.managers,
}
},
Or just reference the properties properly
Object.keys(this.userResultData.managers)
Source:stackexchange.com