Skip to content

Views the way of the future #19

Description

@Mike96Angelo

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}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions