Please improve "custom_elements_with_custom_attribute"

24 views
Skip to first unread message

robin.b...@gmail.com

unread,
Sep 17, 2013, 2:35:10 PM9/17/13
to polym...@googlegroups.com
Hi
I played with the example code under: "custom_elements_with_custom_attribute"
Sorry to say, but this looks very weird and (imo) hardly usable.
What really boggles my mind is that changing index.dart like this:
import 'dart:html';
main() {
}
(so after removing: query('#tmpl').model = '11';)
The result is an empty screen !!

And wtf mean's ".model" anyway? What if you have more than 1 property ?

What you expect from a modern custom component is something like:
<my-element volume="bsn1234" price="99.95" date="20131109"></my-element>
or
<template repeat="{{book in books}}">
   <my-element volume="{{bsn}} price="{{price}}" date="{{date}}"></my-element>
etc


Eric Bidelman

unread,
Sep 17, 2013, 2:47:57 PM9/17/13
to Robin Bakkerus, web...@googlegroups.com
(BCC polymer-dev)
(CC web-ui)

Robin, please us the Dart mailing list for port-related questions:


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages