Skip to content

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

Description

@ojanvafai

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

Activity

  1. sjmiles commented on Aug 21, 2013

    @sjmiles
    Contributor

    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).

  2. ebidel commented on Aug 21, 2013

    @ebidel
    Contributor

    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

  3. ghost assigned on Sep 25, 2013
  4. ghost assigned on Sep 25, 2013
  5. ghost assigned on Sep 25, 2013
  6. sorvell commented on Aug 15, 2014

    @sorvell
    Contributor

    Dup of #703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions