mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
export const HELLO_WORLD = `class HelloWorld extends owl.core.Component {
|
|
inlineTemplate = \`<div>Hello <t t-esc="props.name"/></div>\`;
|
|
}
|
|
|
|
const env = {
|
|
qweb: new owl.core.QWeb()
|
|
};
|
|
|
|
const hello = new HelloWorld(env, { name: "World" });
|
|
hello.mount(document.body);
|
|
`;
|