I managed to implement the project on Vue. Now there are some other problems occured. I want this dashboard to be a single page application. Now I have four main components in the main page which are Navbar.vue, Sidebar.vue, Content.vue and Footer.vue
There is no problem and I can use all of them in the App.vue but for now my Content.vue component is empty and I want some contents to be appear in that blank content page when the user clicks the links from the sidebar. I know that I need to use vue-router at this point. I have no problem implementing and using vue-router but I am not able to display my content in the Content.vue component.
Here is my App.vue looks like
<template>
<div id="app">
<Navbar></Navbar>
<Sidebar></Sidebar>
<Content></Content>
<Footer></Footer>
</div>
</template>
<script>
import Navbar from './components/Navbar.vue'
import Sidebar from './components/Sidebar.vue'
import Content from './components/Content.vue'
import Footer from './components/Footer.vue'
export default {
name: 'App',
components: {
Navbar,
Sidebar,
Content,
Footer
}
}
</script>
I tried to put the tags in tags and arranged the vue-router based as follows;
import Chart from "./components/charts/Chart";
export const routes = [
{ path : '/chart', component : Chart}
];
I also arranged the main.js file so there is no problem using vue-router for sure. For the test part I created a Chart.vue component and put a div and a paragraph inside of it. I am currently working on localhost and I thought that I can display the Chart.vue component inside Content.vue component by addressing http://localhost:8080/chart. But the app still gives me my main page. What am I missing?