Vue: v-show allowing multiple boolean args

Created on 7 Aug 2015  ·  2Comments  ·  Source: vuejs/vue

Having the ability to have comma separated booleans or even multiple booleans with minimal logic (and/or) in a single v-show would be great.

Thanks for the awesome tool.

Most helpful comment

You can use inline expressions like (a && b) || c, if you need something more complex, consider using a computed property.

All 2 comments

You can use inline expressions like (a && b) || c, if you need something more complex, consider using a computed property.

Ah, thanks! I'll put a PR in the documentation noting this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertleeplummerjr picture robertleeplummerjr  ·  3Comments

hiendv picture hiendv  ·  3Comments

wufeng87 picture wufeng87  ·  3Comments

lmnsg picture lmnsg  ·  3Comments

bdedardel picture bdedardel  ·  3Comments