Hi all,
Problem
It’s saying does not exist on type ‘string’. But it’s an Object and a Array.
Variables
The variables with o as prefix are objects.
The variables with a as prefix are arrays.
Code
updateRooms()
{
let oUserProjectsData = this.auth.getUserInfo();
let oCurrentProject = this.oProject;
let aProjects : any = oUserProjectsData.projects;
for (let i = 0; i < aProjects.length; i++)
{
if(aProjects[i]['id'] == oCurrentProject.id)
{
// Set hier het actieve project
this.oProject = aProjects[i];
}
}
this.initializeItems();
}
Hope someone can help me out.
Can’t spot the problem.