Why can't I call my method in App.vue? Shouldn't the div with id='App' in the App file allow me to access methods within it?
Main.js
new Vue({
render: h => h(App),
methods:{
gesamt:function () {
return 'Hello';
}
}
}).$mount('#app')
App.vue
<template>
<div id="app">
<p>{{gesamt()}}</p>
<navbar></navbar>
<ausgaben></ausgaben>
</div>
</template>
<script>
export default {
name:"App",
}
</script>