mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[DOC] fix error in slot documentation
This commit is contained in:
committed by
Michaël Mattiello
parent
54d69c2dde
commit
c813a1ce03
@@ -215,13 +215,13 @@ For other kind of advanced use cases, the content of a slot may depends on some
|
|||||||
specific information specific to the generic component. This is the opposite
|
specific information specific to the generic component. This is the opposite
|
||||||
of the slot params.
|
of the slot params.
|
||||||
|
|
||||||
To solve this kind of problems, one can use the `t-set-scope` directive along
|
To solve this kind of problems, one can use the `t-slot-scope` directive along
|
||||||
with the `t-set-slot`. This defines the name of a variable that can access
|
with the `t-set-slot`. This defines the name of a variable that can access
|
||||||
everything given by the child component:
|
everything given by the child component:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<div>
|
<div>
|
||||||
<t t-set-slot="foo" t-set-scope="scope">
|
<t t-set-slot="foo" t-slot-scope="scope">
|
||||||
content
|
content
|
||||||
<t t-esc="scope.bool"/>
|
<t t-esc="scope.bool"/>
|
||||||
<t t-esc="scope.num"/>
|
<t t-esc="scope.num"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user