Juicy / juicy-html

A custom element that lets you load HTML partials into your Web page. Declarative way for client-side includes.
http://juicy.github.io/juicy-html/
MIT License
62 stars 12 forks source link

Problem with binding #22

Closed sedestrian closed 7 years ago

sedestrian commented 7 years ago

Hi, i am facing a problem to load html from a database and put it in an element through <content> and use that element in dom-repeat, i tried using your element to do this because passing the string to content doesn't work, but i ran into this problem:

if i try to use binding to set the value of content, the element displays nothing

the data in {{item.type}} is:

"<paper-button raised class='dragging white'>BUTTON</paper-button>"

here is the code: https://jsbin.com/buvigiw/edit?html,output

warpech commented 7 years ago

The JSBin code fails because of reasons not related to juicy-html. I can see that Polymer is not loaded at all in this bin. See the screenshot below.

This is the trick that we use to load Polymer in JSBin: http://jsbin.com/qezozor/1/edit?html,output

Can you please fix the JSBin? We will be glad to investigate.

screen shot 2016-12-07 at 18 40 22

tomalec commented 7 years ago

As it seems to be a problem with loading Polymer itself. I'm closing this issue. Feel free to re-open if you still have some problems.