[Vuejs]-How do I use vue-resource v-links inside a vueify component?

0👍

This is all a little confusing to me (best practices for structuring Vue.js single page apps) but this is essentially what I did to make it work:

Vue.component('Todo', Todo);

And removing this whole thing:

var TodoApp = new Vue({
    el: '#app',

    components: { Todo }
});

After this, I can refer to the Todo component in the router.map function.

router.map({
    '/': {
        component: Todo,
        subRoutes: {

            '/bar': {
             ...
            },
            '/baz': {
                ...
            }
        }
    }
})

Leave a comment