Hey guys, me again, lol. :)So, I am working on a project that is built with meteor.js and polymer. I have next code:
| 12345678910111213141516 | <core-menu>
{{#if addingCategory}}
{{> addingCategoryTemplate}}
{{/if}}
<paper-item>
{{#each categoriesList}}
<div class="{{showIfCategorySelected name}}">
... the rest of the code ...
</div>
</paper-item>
{{#if addingSubCategory name}}
{{> addingSubCategoryTemplate}}
{{/if}}
</core-menu>
|
I need <paper-item> to be repeated dynamically as you can see. But I get this error:
Unexpected HTML close tag ... </paper-item>
The only way it wanna work is when I place if handlebars before and after a <core-menu> like this:
{{#if addingCategory}}
{{> addingCategoryTemplate}}
{{/if}}
<core-menu>
<paper-item>
{{#each categoriesList}}
<div class="{{showIfCategorySelected name}}">
... the rest of the code ...
</div>
</paper-item>
</core-menu>
{{#if addingSubCategory name}}
{{> addingSubCategoryTemplate}}
{{/if}}
which is not what I need.Does anyone knows why? It has to do something with shadow-root or you think that problem is something totally else?