We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems currently not possible to access array content within a data binding expression. Example:
<dom-module id="x-weather"> <template> {{weather.main.temp}}°C, {{weather.weather[0].description}} <iron-ajax auto url="http://api.openweathermap.org/data/2.5/weather" last-response="{{weather}}"> </iron-ajax> </template> <!-- ... --> </dom-module>
The example results in the following output:
20°C weather.weather[0].description
André
The text was updated successfully, but these errors were encountered:
I am not sure if it is similar and related to #3527
Sorry, something went wrong.
You actually have to use .0 instead of [0]. A working example: http://jsbin.com/wogurat/edit?html,output For more info see https://www.polymer-project.org/2.0/docs/devguide/data-binding#array-binding
.0
[0]
No branches or pull requests
It seems currently not possible to access array content within a data binding expression.
Example:
The example results in the following output:
20°C weather.weather[0].description
André
The text was updated successfully, but these errors were encountered: