We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*switch
unstable
A new *switch / *case directive
*case
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
Yes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Scope
unstable
What do you want to define?
A new
*switch
/*case
directiveCurrent pattern:
Proposed pattern:
This would be useful in case you want to only evaluate left operand once
I have searched for existing issues
Yes
The text was updated successfully, but these errors were encountered: