diff --git a/src/App.vue b/src/App.vue index f300d4b..17769fc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,29 +1,11 @@ - - Home | - About - - diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 5ca8cef..21fb796 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -1,56 +1,76 @@ - {{ msg }} - - For guide and recipes on how to configure / customize this project, - check out the - vue-cli documentation. - - Installed CLI Plugins - - babel - - Essential Links - - Core Docs - Forum - Community Chat - Twitter - - Ecosystem - - vue-router - vuex - vue-devtools - vue-loader - awesome-vue - + + {{ title }} + + + {{ link }} + + + + + + + - diff --git a/src/components/Stats.vue b/src/components/Stats.vue new file mode 100644 index 0000000..5b260df --- /dev/null +++ b/src/components/Stats.vue @@ -0,0 +1,39 @@ + + + A different component + There are currently {{ countLinks }} links + + + + + + + + diff --git a/src/store.js b/src/store.js index 3c7424e..cc10ea9 100644 --- a/src/store.js +++ b/src/store.js @@ -5,7 +5,15 @@ Vue.use(Vuex) export default new Vuex.Store({ state: { - + title: 'My Custom Title', + links: [ + 'https://google.com', + 'https://coursetro.com', + 'https://youtube.com', + ] + }, + getters: { + countLinks: state => { return state.links.length } }, mutations: { diff --git a/src/views/Home.vue b/src/views/Home.vue index a808fac..02d9ab5 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,6 +1,5 @@ -
- For guide and recipes on how to configure / customize this project, - check out the - vue-cli documentation. -
There are currently {{ countLinks }} links