Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

TemplateBinding docs claim named scopes work, but those require Polymer #635

Closed
jyasskin opened this issue Sep 10, 2014 · 5 comments
Closed
Assignees
Labels

Comments

@jyasskin
Copy link

http://www.polymer-project.org/docs/polymer/databinding-advanced.html#bindingoutside says "If you aren’t using the rest of Polymer, use the Template Binding library directly."
http://www.polymer-project.org/docs/polymer/template.html talks about named scopes, but those don't actually work if you're using just the Template Binding library.

Further, the HowTo examples provide only examples of using TemplateBinding standalone, without any mention that this will exclude some other features.

@arthurevans arthurevans added the P1 label Sep 10, 2014
@arthurevans
Copy link

Good points. Thanks! We need to reconcile the TemplateBinding docs with the Polymer docs.

@jmesserly
Copy link

yeah, it's tricky too because the code has moved around a bit.
One thing that might be worth documenting, you definitely can use these features without a polymer-element. You'd just need to do something like:

<link rel=import href="components/polymer-expressions/polymer-expressions.html">
var myTemplate = document.querySelector('template'); // or however you want to get this
myTemplate.bindingDelegate = new PolymerExpressions();

@arthurevans arthurevans added P2 and removed P1 labels Oct 4, 2014
@arthurevans
Copy link

Lowering priority because this is a specific to using template binding standalone.

@jmesserly
Copy link

fyi, this came up again in googlearchive/TemplateBinding#198

@arthurevans
Copy link

Closing out from this issue tracker, as we're not using the TemplateBinding library anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants