mirror of
https://github.com/odoo/documentation.git
synced 2026-01-02 09:49:17 +07:00
Update 01_owl_components.rst
The keyword `this` is missing in the setup() definition.
This commit is contained in:
@@ -46,7 +46,7 @@ button.
|
||||
static template = "my_module.Counter";
|
||||
|
||||
setup() {
|
||||
state = useState({ value: 0 });
|
||||
this.state = useState({ value: 0 });
|
||||
}
|
||||
|
||||
increment() {
|
||||
|
||||
Reference in New Issue
Block a user