angular typescript class | string does not contain member code example Example: ts create nex field var obj:any = {} obj.prop = 5;