Polymer 0.8-preview template features problem

482 views
Skip to first unread message

Tomek W

unread,
Nov 23, 2014, 6:58:59 AM11/23/14
to polym...@googlegroups.com
Hi,

I want to check how upgrading Polymer from 0.5 to 0.8 would affect my apps, so I installed 0.8-preview from bower. I was prepared to struggle with some subtle changes with Template Binding (as we use  it extensively), but it occurred that changes were so drastically that I cannot even do:
`<template bind>Something {{here}}</template>`

The source code is now divided into "features". Should I enable those somehow? Is that flow described somewhere? or maybe template binding outside Polymer-element get totally deprecated?

I know that this is "preview", and the docs are not ready yet, but it would be nice to have at least something to start with.

Thanks,
Tomek

Tomek W

unread,
Nov 24, 2014, 4:53:06 AM11/24/14
to polym...@googlegroups.com
Here is simple (but I believe very common) use case: http://jsfiddle.net/tomalec/31tLeL37/

Steve Orvell

unread,
Nov 25, 2014, 9:56:25 PM11/25/14
to Tomek W, polym...@googlegroups.com
Templates that are used to create custom elements can contain bindings. There will also be some support for nesting templates, but it doesn't exist yet.

In the meantime, it's perfectly reasonable to load `TemplateBinding.js` and stamp the template manually.

There will be examples for this, but we're not quite there yet.

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/19571ae1-2c02-4a72-acf5-aac187eb0253%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages