We will learn How to check object or array empty or not in Vue JS?


Example: 

<!DOCTYPE html>
<html>
<head>
    <title>How to check object or array empty or not in Vue JS? - rathorji.in</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
  
<ul id="app">
  <li v-if="!items.length">No item found</li>
  <li v-for="item in items">
  </li>
</ul>
  
</body>
  
<script type="text/javascript">
var app = new Vue({
    el: '#app',
    data: {
      items: []
    }
});
</script>
</html>

I hope this help you.