Home

Issue: 1446

Use ||(or) in v-if

[issue link]

I need, that component was on a page ‘/brands’ or ‘/brand’. I try, but it does’t work

 <div v-if="brandsOrBrand">
            <AlphabetSearch/>
        </div>

in script

computed: {
         brandsOrBrand() {
             return this.$route.fullPath == '/brands' || this.$route.fullPath == '/brand';
         }
This question is available on Nuxt.js community (#c1288)