add t-ref directive

This commit is contained in:
Géry Debongnie
2019-01-21 15:46:29 +01:00
parent 64557ae999
commit 9be5cc1760
6 changed files with 53 additions and 15 deletions
+1 -1
View File
@@ -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>