You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
component withSlot:
s: string = $1
`template`:
"The number is {self.s}, and the slot is "
slot
appRoutes("ROOT"):
"/":
tDiv:
component withSlot(): "one"
tDiv:
component withSlot($7): "seven"
tDiv:
withSlot(): "one"
#tDiv:
#withSlot($7): "seven"
The commented code unfortunately won't compile.
So omitting the component tag works and allows the same syntax, except in this one case. Which will actually be quite common in practice as components start to do all the things that tags do.
The text was updated successfully, but these errors were encountered:
To Reproduce π¨βπ¬
The commented code unfortunately won't compile.
So omitting the component tag works and allows the same syntax, except in this one case. Which will actually be quite common in practice as components start to do all the things that tags do.
The text was updated successfully, but these errors were encountered: