JS: Binding: Property: 'iconLeft' is invalid or does not exist. SourceProperty: 'iconLeft'


#1

Hi,

I’m trying to comprehend the examples in the book Getting Started with Native Script and I’m getting the error:

JS: Binding: Property: ‘iconLeft’ is invalid or does not exist. SourceProperty:
‘iconLeft’

It is property which seems, to be not defined anywhere. It is used in the following way:

var messages = new ObservableArray();
...
messages.push({from: 2, message: "Testing System Message", iconRight: messageIcons[2]});
messages.push({from: 3, message: "This is a simple message from another user...", iconLeft: messageIcons[3]});

Is there something missing in the source code written in the book?

Regards,
Jan-Erik