screen_rotation
Copied to Clipboard
<html> <head> <script type="importmap"> { "imports": { "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js" } } </script> <body> <div id="app"> <h3>Vue Js Check if array contains value</h3> <p v-if="demoArray.length === 0 ">Array is empty</p> <p v-else v-for="itemArray in demoArray">{{itemArray}}</p> </div> <script type="module"> import { createApp } from "vue"; createApp({ data() { return { demoArray:[], } }, }).mount("#app"); </script> </body> </head> </html>