I'm building server UI and I'm struggling with components. Maybe someone knows how to stack all components and control all UI with functions? example
- App.vue
- chat.vue
- hud.vue
- player.vue
I need to display all .vue in app.vue
App.vue
import chat from './components/chat.vue'
export default {
name: 'app',
components: {
chat
}
}
chat.vue
export default {
methods: {
test: function() {
console.log("test");
}
}
}
How can I call the function test in the DevTools console, when I run the webiste?