Unable to get user properties in Angular2

I used the Backendless console to set user properties. Now when using them in my code i get an error ‘firstname’ does not exist on type ‘User’. I logged the properties using describeUserClass and the property was available. Please any solution???

Hi Jesse,

What is the type ‘User’? You need to use BackendlessUser in case you want to work with Backendless Users table.

This is my code ->var user = new Backendless.User();
user.firstname = “Arnold”;
When i run it i get the error " ‘firstname’ does not exist on type ‘User’."

Can you please try different syntax:

var user = new Backendless.User();
user[ "firstname" ] = "Arnold";

Thanks Sergey!!! This syntax worked for me.