mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
19 lines
289 B
Plaintext
19 lines
289 B
Plaintext
class {
|
|
onCreate() {
|
|
this.name = 'INITIAL';
|
|
this.onInputCalls = [];
|
|
}
|
|
|
|
onInput(newInput) {
|
|
this.onInputCalls.push({
|
|
name: this.name
|
|
})
|
|
|
|
this.name = newInput.name;
|
|
}
|
|
}
|
|
|
|
<div>
|
|
Hello <span.name>${input.name}</span>!
|
|
</div>
|