F
F
faqmanity2017-10-21 13:08:23
Vue.js
faqmanity, 2017-10-21 13:08:23

How to get n elements from Vuex?

There is state.products.all = 100 elements, only 3 elements need to be taken from them. How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Ponomarev, 2017-10-21
@faqmanity

Create getter https://vuex.vuejs.org/en/getters.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question