Difference between revisions of "VueJs Routing"

From rbachwiki
Jump to navigation Jump to search
Line 7: Line 7:
Links created in the [[Header.js File]] <br>
Links created in the [[Header.js File]] <br>
Create a Go to home button [[user.vue]] <br>
Create a Go to home button [[user.vue]] <br>
Pass info with a link [[vuelinksnip]]<br>


[[VueJs|Category]]/ [[Programming]]
[[VueJs|Category]]/ [[Programming]]

Revision as of 23:43, 17 October 2018

CD into directory

npm install --save vue-router
    • thoses .js files should be .vue

Import Router into main.js File
Routes are are stored in routes.js File
Main app.vue File
Links created in the Header.js File
Create a Go to home button user.vue
Pass info with a link vuelinksnip

Category/ Programming