screen_rotation
Copied to Clipboard
<html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <h3>Vue Uppercase Array of Strings</h3> <ul> <li v-for="item in uppercaseItems">{{ item }}</li> </ul> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { items: ['apple', 'banana', 'cherry'] } }, computed: { uppercaseItems() { return this.items.map(item => item.toUpperCase()) } } }); </script> <style scoped> #app { font-family: Arial, sans-serif; background-color: #f5f5f5; padding: 20px; } h3 { font-size: 1.5rem; font-weight: bold; margin-bottom: 10px; } ul { list-style: none; margin: 0; padding: 0; } li { font-size: 1rem; margin-bottom: 5px; } </style> </body> </html>