Skip to content

Commit fceec12

Browse files
committed
[IMP] awsome_owl: task 4 (markup)
1 parent 527af1f commit fceec12

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

awesome_owl/static/src/playground.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import { Component, useState } from "@odoo/owl";
1+
import { Component, useState, markup } from "@odoo/owl";
22
import { Counter } from "./counter/counter"
33
import { Card } from "./card/card";
44

55
export class Playground extends Component {
66
static template = "awesome_owl.Playground";
77
static components = { Counter, Card };
88

9+
value1 = "<div class='text-primary'>test</div>";
10+
value2 = markup("<a href='odoo.com'>test2</a>");
11+
912
setup() {
1013
}
1114

awesome_owl/static/src/playground.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<Counter/>
1111
</div>
1212
<div>
13-
<Card title="'card 1'" content="'content of card 1'"/>
14-
<Card title="'card 2'" content="'content of card 2'"/>
13+
<Card title="'card 1'" content="value1"/>
14+
<Card title="'card 2'" content="value2"/>
1515
</div>
1616
</t>
1717

0 commit comments

Comments
 (0)