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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -