mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix: hello world example was wrong :(
This commit is contained in:
@@ -55,7 +55,7 @@ Here is a minimal Hello World example:
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
class HelloWorld extends owl.core.Component {
|
class HelloWorld extends owl.core.Component {
|
||||||
inlineTemplate = `<div>Hello <t t-esc="state.name"/></div>`;
|
inlineTemplate = `<div>Hello <t t-esc="props.name"/></div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const env = {
|
const env = {
|
||||||
|
|||||||
Reference in New Issue
Block a user