[DOC] move some component doc in sub pages

closes #354
This commit is contained in:
Géry Debongnie
2019-11-30 21:36:41 +01:00
committed by aab-odoo
parent c1269288f5
commit 06a6d890d7
6 changed files with 294 additions and 242 deletions
+4 -4
View File
@@ -2165,28 +2165,28 @@ describe("other directives with t-component", () => {
grandChild = this;
}
_onEv() {
steps.push('GrandChild');
steps.push("GrandChild");
}
}
class Child extends Component<any, any> {
static template = xml`<GrandChild t-on-ev="_onEv"/>`;
static components = { GrandChild };
_onEv() {
steps.push('Child');
steps.push("Child");
}
}
class Parent extends Component<any, any> {
static template = xml`<Child t-on-ev="_onEv"/>`;
static components = { Child };
_onEv() {
steps.push('Parent');
steps.push("Parent");
}
}
const parent = new Parent();
await parent.mount(fixture);
grandChild.trigger("ev");
expect(steps).toEqual(['GrandChild', 'Child', 'Parent']);
expect(steps).toEqual(["GrandChild", "Child", "Parent"]);
});
test("t-if works with t-component", async () => {