-
-
Save ederchrono/6ff2b419d4907a95b0288ea45dedfe0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JS | |
const itemsList = ['About', 'Works', 'News/Blog', 'Contact us'] | |
new Vue({ | |
el: '#app', | |
computed: { | |
menuItems() { | |
return itemsList.map((item, index) => { | |
return { | |
label: item | |
} | |
}) | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment