Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's confusing that you need to nest a <template repeat> inside an outermost <template>. #245

Closed
ojanvafai opened this issue Aug 20, 2013 · 3 comments
Assignees

Comments

@ojanvafai
Copy link

All the examples on http://www.polymer-project.org/platform/template.html don't show that you need to do this.

  1. The docs should be updated to explicitly point this out. Probably at the beginning of the template binding page.
  2. If you put a "repeat" or an "if" on the outermost template in a custom element, we should log a warning to the console clearly explaining why it's ignored.

@rafaelw

@sjmiles
Copy link
Contributor

sjmiles commented Aug 21, 2013

Sorry about that, we had a blindspot there.

We will add a warning as you suggest, and then consider other possibilities in the longer term (e.g. auto generating an enclosing template, or using some other name for the outer template).

@ebidel
Copy link
Contributor

ebidel commented Aug 21, 2013

The outmost <template> a requirement imposed by polymer-element and not by Template Binding.

Better data-binding examples higher up in the doc stack will help, especially using it the context of a custom element.
Polymer/old-docs-site#98

@sorvell
Copy link
Contributor

sorvell commented Aug 15, 2014

Dup of #703

@sorvell sorvell closed this as completed Aug 15, 2014
@sorvell sorvell removed the p1 label Aug 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants