S
S
stanislavkm2022-04-16 12:18:36
Vue.js
stanislavkm, 2022-04-16 12:18:36

How to link to vue anchor?

How to properly link to anchors in vue3.

<ul>
        <li v-for="(title, index) in this.$store.state.titles" :key="index"><a class="header_li" href="`#${{title}}`">{{title}}</a></li>
</ul>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2022-04-16
@stanislavkm

:href="#`${title}`"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question