mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
13 lines
200 B
Plaintext
13 lines
200 B
Plaintext
class {
|
|
incrementBar() {
|
|
this.getComponent('bar').increment();
|
|
this.getComponent('bar').update();
|
|
}
|
|
}
|
|
|
|
<div.root key="root">
|
|
<foo/>
|
|
<bar key="bar"/>
|
|
<foo/>
|
|
</div>
|