CanElement.view
A static getter that returns the renderer function used to render the element's shadow DOM.
Object
import { Element } from "can-element";
import view from "./some-template.stache";
class MyApp extends Element {
static get view() {
return view;
}
}
customElements.define( "my-app", MyApp );