L
L
Little Vasya2018-06-13 13:44:05
Vue.js
Little Vasya, 2018-06-13 13:44:05

How to make tabs in VUE JS?

Hello everyone, I'm pulling a shop to the front, I ran into a problem ..
You need to organize tabs where "Flour", "Bakery", the fact is that new categories will be added and each category has its own products directly, when you click on that other category, it should display those other products, how best to implement it
5b20f57063ea3723845312.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Anton, 2018-06-13
@emilov

https://codepen.io/anon/pen/BVZZvr

R
Roman Kitaev, 2018-06-13
@deliro

If you want - nested routes (it will be possible to drop a link with an open tab)
If you want - a regular field in data (activeTab) + v-show
You can even v-if, but if tabs are often clicked, then this is very less productive

K
Konstantin Malyarov, 2018-06-13
@Konstantin18ko

https://bootstrap-vue.js.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question