Re: [w3c/webcomponents] Discussion: Templates that Don't Destroy Element References (#777)

This seems a bit weird to me. The interpolation of:

```js
`<h1>See Below</h1>${this.btn}<p>Click the sentence above to see alert.</p>`
```

produces:

```js
"<h1>See Below</h1>[object HTMLButtonElement]<p>Click the sentence above to see alert.</p>"
```

You want the thing the literal produces to not be a string. To do that you need a tagged template literal like [lit-html](https://github.com/Polymer/lit-html) does. Such a function could work with template instantiation to produce what you want.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/777#issuecomment-445228131

Received on Friday, 7 December 2018 13:10:39 UTC