-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
scope: unstablespecSpec definition for non-well defined behaviorsSpec definition for non-well defined behaviors
Milestone
Description
Scope
unstable
What do you want to define?
A new *switch
/ *case
directive
Current pattern:
<i *if="x === 'A'"></i>
<i *else="x === 'B'"></i>
<i *else="x === 'C'"></i>
<i *else></i>
Proposed pattern:
<i *switch="x" *case="'A'"></i>
<i *case="'B'"></i>
<i *case="'C'"></i>
<i *case.default></i>
This would be useful in case you want to only evaluate left operand once
I have searched for existing issues
Yes
Metadata
Metadata
Assignees
Labels
scope: unstablespecSpec definition for non-well defined behaviorsSpec definition for non-well defined behaviors