-
Notifications
You must be signed in to change notification settings - Fork 45
Not able to assign JSON data from a service directly to the items variable. #171
Comments
[object object] indicate you ask a complex object to be displayed. Check textField parameter correspond to a property of your object you want to display |
Above is the data I have and the tag attribute I have given is like this: |
I'm not convinced path is well handled in text or id field property, never test this case. Finally, I call something like item[textField] to get value (item["data.branchName"] in your case), I think js don't handle this correctly. |
The solution doesnt work. And as suggested, I have given it like this in my template: Doesnt work. |
The package is very confined and takes data if it is only in the format that you have provided. any change in nesting and naming convention {"id":03,name:"India"} seems to be compulsory after a lot of testing. There seems to be other workaround other than rearranging the data to be in the same format as your demo has used. |
I am not able to assign JSON data from a service directly to the items variable. It should accept any array of objects. If I do, the drop down shows all names as
[object object]
. In the Demo Application, there was a exported const array that was assigned. Would have to do the same to be able to display the data correctly?The text was updated successfully, but these errors were encountered: