I am trying to send 2 props to my navbar component but it does not receive the data.
Here is what I get instead of my data:

Code:
Front.vue (upper template)
<template>
<front-nav :menus="menus" :settings="settings"></front-nav>
<router-view :key="$route.fullPath"></router-view>
<front-footer></front-footer>
</template>
<script>
import frontNav from './frontNavBar.vue';
import frontFooter from './frontFooter.vue';
export default {
name: 'front',
data(){
return {
settings: {
name: '',
favicon: '',
logo: '',
},
menus: [],
}
},
components: {
frontNav,
frontFooter
},
mounted() {
this.getData();
},
methods: {
getData() {
axios.get('/api/general')
.then(response => {
this.settings = response.data.settings[0];
this.menus = response.data.menus;
})
.catch(function (error) {
console.log('error', error);
});
}
},
}
</script>
Nabar component (receiving props)
<template>
<div>data goes here...</div>
</template>
<script>
export default {
name: 'frontNav',
props: ['settings', 'menus'],
data() {
//
},
mounted() {
console.log('settings: ', this.settings)
console.log('menus: ', this.menus)
},
methods: {
//
}
}
</script>
results of console.log('settings: ', this.settings) and console.log('menus: ', this.menus) are in image above.
Any idea?