Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array objects #14

Open
leandromutualtech opened this issue Jan 16, 2020 · 1 comment
Open

Array objects #14

leandromutualtech opened this issue Jan 16, 2020 · 1 comment

Comments

@leandromutualtech
Copy link

Hi, I'm trying to use an array of object instead of a simple array, I even set the display tag, but I can't make it to work. Could you help me ?

Instead of using this...
static tube:Array = [
"Harrow & Wealdstone",
"Kenton",
]

I'd like to add this, but nothing is displayed...
static tube:Array = [{
"name":"Harrow & Wealdstone",
"id":1
}]

Thank you

@czeckd
Copy link
Owner

czeckd commented Jan 16, 2020

Did you set the key? So something like key="id".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants