googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

template ref attribute with model binding #142

Closed collin closed 10 years ago

collin commented 10 years ago

With the current polymer in bower this doesn't render the template with id='route-index-html'.

I have an older install from bower on Sept 8 where this does work.

<body>
  <template bind id="router">
    <h1>
      route{{location.path}}
    </h1>
    <template bind ref="route{{location.path}}"></template>
  </template>

  <template id="route-index-html">
    <h1> ROUTE-INDEX-HTML </h1>
  </template>

  <script>
    document.all.router.model = {
      location: { path: '-index-html' }
   }
  </script>
</body>
</html>
rafaelw commented 10 years ago

Good catch. Thanks. Fixed here: https://github.com/Polymer/TemplateBinding/commit/7c0555053fd9b569a81405a664b64b7ac9f32248