Answer the question
In order to leave comments, you need to log in
How to remove .slice() from v-for when calling child component on different parent components?
There is a child component <service-content />
in it I write
<div v-for="item in services.slice(0, 11)">
{{ item.name }}
</div>
<service-content />
, index
I need .slice(0, 11) and in the parent component services
I need the output of all items without .slice( 0, 11), what is the best way to implement this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question