[FIX] developer/tutorials/discover_js_framework: add missing this
closes odoo/documentation#5677 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
cae0edcc83
commit
44ef78b391
@ -46,7 +46,7 @@ button.
|
|||||||
static template = "my_module.Counter";
|
static template = "my_module.Counter";
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
state = useState({ value: 0 });
|
this.state = useState({ value: 0 });
|
||||||
}
|
}
|
||||||
|
|
||||||
increment() {
|
increment() {
|
||||||
|
Loading…
Reference in New Issue
Block a user