mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[DOC] readme: improve example
This commit is contained in:
@@ -27,10 +27,7 @@ class ClickCounter extends owl.Component {
|
|||||||
Click Me! [<t t-esc="state.value"/>]
|
Click Me! [<t t-esc="state.value"/>]
|
||||||
</button>`;
|
</button>`;
|
||||||
|
|
||||||
constructor(parent, props) {
|
state = { value: 0 };
|
||||||
super(parent, props);
|
|
||||||
this.state = { value: 0 };
|
|
||||||
}
|
|
||||||
|
|
||||||
increment() {
|
increment() {
|
||||||
this.state.value++;
|
this.state.value++;
|
||||||
|
|||||||
Reference in New Issue
Block a user