mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add t-ref directive
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
import Widget from "../../src/core/widget";
|
||||
|
||||
const template = `
|
||||
<div t-debug="1">
|
||||
<div>
|
||||
<button t-on-click="increment(-1)">-</button>
|
||||
<span style="font-weight:bold">Value: <t t-esc="state.counter"/></span>
|
||||
<button t-on-click="increment(1)">+</button>
|
||||
|
||||
@@ -2,7 +2,7 @@ import Widget from "../../src/core/widget";
|
||||
import Counter from "./Counter";
|
||||
|
||||
const template = `
|
||||
<div t-debug="1">
|
||||
<div>
|
||||
<span>Root Widget</span>
|
||||
<button t-on-click="resetCounter">Reset</button>
|
||||
<button t-on-click="resetCounterAsync">Reset in 3s</button>
|
||||
|
||||
Reference in New Issue
Block a user