<div class="container"> <ul class="lines"> <template id="line" repeat="{{line in lines}}"> <li class="line {{line.class}}"> <div class="line-label"> <span class="line-name {{line.nameclass}}"> {{line.name}} </span> <span class="line-status {{line.class}}"> {{line.status}} </span> </div> <ul class="line-disruptions"> <template id="disruption" repeat="{{disruption in line.disruptions}}"> <li class="line-disruption {{disruption.class}}">{{disruption.from}} to {{disruption.to}}: {{disruption.status}}</li> </template> </ul> </li> </template> </ul> </div>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.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/76621c93-187f-4810-a3ef-026c080b4383%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<ul class="line-disruptions" on-tap="{{tapHandler}}">
tapHandler: function(event) {// get the specific `line` object associated with the target elementvar line = event.target.templateInstance.model;
// do stuff with `line`...
}
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/6edef541-f33d-44f7-b976-d2d1f1379806%40googlegroups.com.
{{if line.disruptions}}
<ul class"line-disruptions">....</ul>
{{endif}}<template id="example" bind><span>Show?: <input type="checkbox" checked="{{ show }}"></span><template bind if="{{ show }}"><span>Yay! I'm shown</span></template></template>Other from that you can use conditional attribute inside template:hidden?="{{ hide }}"see: https://github.com/Polymer/TemplateBinding/blob/master/examples/how_to/conditional_attributes.html
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/234c3f37-b0aa-4143-8f0d-49cd625a68b7%40googlegroups.com.
<link rel="import" href="goodies.html" with-prefix:foo>That will add the prefix foo to every elements defined in goodies.html You received this message because you are subscribed to a topic in the Google Groups "Polymer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/polymer-dev/jR6SIU3HsNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAHbmOLZgKNdKc9hwJQcHaJ%2Bh%2BP9naokyj7JwM5ecMzJUVcqfBQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/ac07a555-5389-449c-a637-ed86f6daa8db%40googlegroups.com.
Correct.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/254b38dd-fbd5-416d-9fa8-975240d4d5a4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/8ecba2a5-ef71-4c0c-81a0-4c811e4b97c1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJj5OwBPmLZJe_%2Bs7MFpUBqwhWPteAZNJCOnB5dN0dR85iw68w%40mail.gmail.com.
<template if="{{ loginScreen }}">
<login-screen page="{{ loginScreen }}"></login-screen>
</template>
<polymer-element name="login-screen" attributes="page">
<template>
.....
</template>
<script>
Polymer('login-screen', {
ready: function() {
this.page = false
}
});
</script>
</polymer-element>
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/903723f1-9bd4-4e9f-b5d4-796c220a956f%40googlegroups.com.