Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views the way of the future #19

Open
Mike96Angelo opened this issue Oct 31, 2017 · 0 comments
Open

Views the way of the future #19

Mike96Angelo opened this issue Oct 31, 2017 · 0 comments

Comments

@Mike96Angelo
Copy link
Owner

Syntax:

{{?><View>}}

example

class MyView extends View {
  name: string = 'myview'
  template: 'MyView: <input value::{{value}} oninput::{{oninput}}>'
  _value: string
  
  get value() { return this._vaule }
  set value(newValue) { this._vaule = newValue; this.render(); }

  @selfBoundEventSource
  oninput(evt) {
    let input = evt.target

    this.value = input.value;
  }
}

let myView = new MyView()
{{?>myView}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant