I'm trying to access an anchor element in a computed property in order to determine whether is should be set to active or remain as is.
I've seen examples using v-for and looping through data properties, but this is a static menu like so:
<template>
<div class="panel panel-default">
<div class="panel-heading">Application Menu</div>
<ul class="list-group">
<a :href="route('applications.index')"
:class="activeClass"
class="list-group-item">Applications</a>
<a :href="route('applications.repository')"
:class=""
class="list-group-item">Token Repository</a>
<a :href="route('applications.notifications')"
:class=""
class="list-group-item">Notifications</a>
</ul>
</div>
</template>
My activeClass computed prop would compare the href of the current anchor to the current location of the browser and return active if they match.
I've consulted all the documentation on the Vue website and Googled extensively, and I've not yet found a way to access the href attribute of the anchor calling the computed property.