D3.js vs Vue.js examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

51 lines
665 B

<template>
<div class="hello">
<ul>
<li v-for="item in items">
<router-link :to="item.path">{{ item.name }}</router-link>
</li>
</ul>
</div>
</template>
<script>
import { routes } from 'router/demos'
export default {
data () {
return {
items: routes
}
}
}
</script>
<style scoped>
h1, h2 {
font-weight: normal;
}
ul {
/*list-style-type: none;*/
padding: 0;
margin: auto;
width: 300px;
}
li {
/*display: inline-block;*/
margin: 0 0px;
list-style: decimal
}
a {
color: blue;
display: block;
text-decoration: none;
text-align: left;
}
a:hover {
text-decoration: underline;;
}
</style>