A
A
anton_trofimov952020-08-06 00:24:22
Vue.js
anton_trofimov95, 2020-08-06 00:24:22

Hide/show by condition?

How to hide/show list items on specific pages in nuxt vue? I v-for display menu links in a component that on all pages, on the main page I need three links, and on the other page hide two, i.e. hide this element from the array on a specific page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-08-06
@yarkov Vue.js

Make a computed in which to return an array with the necessary links

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question