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

Add support for `scope.vm` lookups #92

Closed m-mujica closed 4 years ago

m-mujica commented 4 years ago
class App extends StacheElement {
  static get view() {
    return "{{ scope.vm.greeting }} World";
  }

  static get props() {
    greeting: "Hello";
  }
}
customElements.define("my-app", App);