Is it possible to render a List<Element> in Polymer.dart? -


given list<element> elements, possible render elements in template, this?

<template repeat="{{element in elements}}">     {{element.something}} </template> 

i'd want observe list too, add , remove elements list changes.

update

a ready-to-use element dart polymer 1.0 bwu-bind-html


{{}} can't include html.

you can use <safe-html> tag (see answer html tags within internationalized strings in polymer.dart)

<template repeat="{{element in elements}}">     <safe-html model="{{element.something}}"></safe-html> </template> 

but guess have change <self-html> implementation replaces content of model instead of adding model it's content, because ul/ol can't contain <self-html>


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -