Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Provide some standalone examples #54

Open
jyasskin opened this issue Sep 10, 2014 · 5 comments
Open

Provide some standalone examples #54

jyasskin opened this issue Sep 10, 2014 · 5 comments

Comments

@jyasskin
Copy link

I tried to write a test case for googlearchive/TemplateBinding#188, but got stuck because there weren't any simple examples of the filtering library. TemplateBinding provides some at https://github.com/Polymer/TemplateBinding/tree/master/examples/how_to, but those don't include named scopes or filters because those features are provided by this library instead.

@ebidel
Copy link

ebidel commented Sep 10, 2014

@jyasskin
Copy link
Author

Neither includes a document I can open and watch it work, which matters because neither of those work outside of a polymer element.

@ebidel
Copy link

ebidel commented Sep 10, 2014

Yep, that's true. We've made a conscious decision to provide all/most examples in the context of polymer-element. Early on, people got confused by the differences in helper lib examples where polymer sugars their usage. We decided to stick with polymer-element, because that's the majority.

That said, I think it would be great if this repo had a better README with examples :)

@David-Mulder
Copy link

So, what do you need to include/run/setup to make this work outside of a polymer element? I mean, what's the point of the entire template tag standalone without this even?

@David-Mulder
Copy link

Old question, but if you hadn't figured it out or anybody else comes across this: is='auto-binding' on a standalone template tag does the trick. See this blog post for more detail.

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

No branches or pull requests

3 participants