canjs / can-stache-element

Create custom elements with can-stache and can-define-class
https://canjs.com/doc/can-stache-element.html
MIT License
3 stars 1 forks source link

StacheElement as the route.data #67

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

This wasn't working in a guide. We need to verify it does:

<my-element></my-element>
class MyElement extends StacheElement  {}

route.data = document.querySelector('my-element');
matthewp commented 5 years ago

Dupe of https://github.com/canjs/can-stache-element/issues/56