I am currently working on a web application that retrieves data from a CMS. Utilizing the Vue-Router in 'history' mode, I need to address content fetched from the API which may include links. My goal is to manage specific links using the router while allowing all other links to function normally.
Is this type of functionality feasible? I attempted to substitute the <a>
tags within the content with router-links, but encountered issues as I am utilizing v-html
to display the content. In jQuery, I would have monitored events on all <a>
elements and evaluated the links accordingly. However, I am uncertain how to accomplish this elegantly in Vue.