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>