@switch
block for conditional rendering based on a value (in this example, currentIndex
).@if...@else
blockscurrentIndex
is a signal and it's initialized to 0
, which holds the current index value.0
, 1
, and 2
respectively when clicked.@switch
to render different content based on the currentIndex
value:
@case(0)
: Displays "Content 1" and "lorem ipsum".@case(1)
: Displays "Content 2" and "Another content".@case(2)
: Displays "Content 3" and "More content...".@switch
block for conditional rendering based on the current step.