Skip to content

Commit 37e987f

Browse files
committed
[IMP] add exercise
1 parent b343eaa commit 37e987f

File tree

7 files changed

+18
-63
lines changed

7 files changed

+18
-63
lines changed

docs/playground/playground.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ const SAMPLES = [
104104
folder: "oca_07",
105105
code: ["js", "xml", "css"],
106106
},
107+
{
108+
description: "Exercise",
109+
folder: "exercise",
110+
code: ["js", "xml", "css"],
111+
},
107112
{
108113
description: "Components",
109114
folder: "components",

docs/playground/samples/exercise/exercise.css

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// In this example, we show how components can be defined and created.
2+
import { Component, useEnv, useSubEnv, useState, mount } from "@odoo/owl";
3+
4+
export class Parent extends Component {
5+
static template = 'training_oca.Parent';
6+
}
7+
8+
mount(Parent, document.body, { templates: TEMPLATES, dev: true });
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<templates xml:space="preserve">
2+
<t t-name="training_oca.Parent">
3+
<div>To Fill</div>
4+
</t>
5+
</templates>

docs/playground/samples/oca_0/oca_0.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/playground/samples/oca_0/oca_0.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/playground/samples/oca_0/oca_0.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)