2👍
Lets keep all your links into an array say links[], add the following code in your html
<div v-if="links.length>1">
// your code with condition
</div>
<div v-else>
// else part if any
</div>
In vue part you need to add the array in the following way,
data: function () {
return {
links: [],
}
}
- [Vuejs]-Deploying Spring Boot Using Vue.js to Heroku builds successfully, but doesn't start
- [Vuejs]-How to resolve – Duplicate presence of slot "default" found in the same render tree
Source:stackexchange.com