I'm having trouble figuring out the correct way to declare a Vue.component within export default.
This issue arises from following a tutorial on vuejs.org.
https://i.sstatic.net/PH3VN.png
Instead of using var app = new Vue
, I am implementing it as follows:
export default {
name: "App",
el: "#app-7",
data() {
return {
shoppingItems: [
{ id: 0, item: 'Vegetables' },
{ id: 1, item: 'Cheese' },
{ id: 2, item: 'Other Food Items' }
],
};
},
};
The challenge I am facing is where to include the Vue.component within the export default app structure.
Thank you in advance for your help!