[DOC] tags: add missing information

The example given in the tags page was misleading.

closes #884
This commit is contained in:
Géry Debongnie
2021-07-03 07:30:09 +02:00
committed by aab-odoo
parent a8c8f6affe
commit 7419c1982a
+6 -6
View File
@@ -62,14 +62,14 @@ The CSS tag is useful to define a css stylesheet in the javascript file:
```js ```js
class MyComponent extends Component { class MyComponent extends Component {
static template = xml` static template = xml`
<div class="my-component">some template</div> <div class="my-component">some template</div>
`; `;
static css` static style = css`
.my-component { .my-component {
color: red; color: red;
} }
`; `;
} }
``` ```