You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the polymer docs, the expression iterated over when using the repeat statement in a <template> can be a "a simple identifier, a path or a full expression (including Object and Array literals)."
After testing, however, it seems as though the repeat statement only works with arrays, and not with objects.
The docs there are imprecise. The general nature of expressions is explicated but I don't believe it intends to say you can iterate over objects with repeat.
I believe only Arrays are support for iteration at this time, although there is talk of possibly supporting NodeLists also.
According to the polymer docs, the expression iterated over when using the
repeat
statement in a<template>
can be a "a simple identifier, a path or a full expression (including Object and Array literals)."After testing, however, it seems as though the repeat statement only works with arrays, and not with objects.
Example
The text was updated successfully, but these errors were encountered: