mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] component,qweb: props validation
We re-add the possibility to validate props when dev mode is active. No change in the API right Now. The dev mode is activated via the configure method of App class.
This commit is contained in:
committed by
Aaron Bohy
parent
15e4c856da
commit
c16d8ed6de
@@ -750,7 +750,7 @@ describe("basics", () => {
|
||||
static template = xml`<span>abc<t t-if="props.flag">def</t></span>`;
|
||||
}
|
||||
class Parent extends Component {
|
||||
static template = xml`<Child flag="state.flag"/>`
|
||||
static template = xml`<Child flag="state.flag"/>`;
|
||||
static components = { Child };
|
||||
state = useState({ flag: false });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user