[DOC] fix error in slot documentation

This commit is contained in:
Géry Debongnie
2022-01-24 16:35:22 +01:00
committed by Aaron Bohy
parent 93f2c1d766
commit 979712f84e
+2 -2
View File
@@ -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
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
everything given by the child component:
```xml
<div>
<t t-set-slot="foo" t-set-scope="scope">
<t t-set-slot="foo" t-slot-scope="scope">
content
<t t-esc="scope.bool"/>
<t t-esc="scope.num"/>