Polymer 0.9 template repeat -
i trying upgrade polymer 0.8 polymer 0.9. in polymer 0.8 following worked:
<template> <template is="x-repeat" items="{{array}}"> <span>{{item.member}}</span> </template> </template>
however, not appear work polymer 0.9. new approach should used?
note, polymer 0.5 used following:
<template> <template repeat="{{item in array}}"> <span>{{item.member}}</span> </template> </template>
x-repeat getting renamed in 0.9 dom-repeat. (source)
so should work you:
<template> <template is="dom-repeat" items="{{array}}"> <span>{{item.member}}</span> </template> </template>
Comments
Post a Comment