How does vue render data to routing components?

for example, how to render name and age in data to homepage template?

< hr >
var vm = new Vue({ el: "-sharpapp", router,data: { name: "A", age: 20,link:"" } });

const router = new VueRouter({
    routes: [
        {path: "/", component: homepage}
    ]
});
const homepage = {template: "-sharphomepage"};
<script type="text/x-template" id="homepage">
    {{name}}{{age}}
    <a :src="link">link</a>
</script>

template should be a string of html. It is recommended that you first take a look at the tutorial and try to type the code according to it.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32b5b-2be29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32b5b-2be29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?