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?
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?