Closed sorvell closed 10 years ago
I wonder if the bracket syntax works?
{{ someArray.length > 0 ? someArray[1] : 'none' }}
That seems a little more intuitive, IMHO.
FYI to @justinfagnani
array[index] is tracked at https://github.com/Polymer/mdv/issues/112
issue was 112 is fixed
This works:
Accessing array items is convenient (e.g. I want to display the first video in a prioritized list of video data).
Accessing an array element within an expression does not work:
Here's an example: http://jsbin.com/agacet/1/edit