One of my buttons has a router-link setup like this:
<router-link to="summary">
<button type="button" @click='questionsFinish' class="btn btn-primary"
:disabled="!isFinishStepEnabled">{{$lang.message.solution_calculate}}
</button>
</router-link>
I am trying to pass the value from a getter into the router-link like this:
<router-link to="{{getlang}}/summary">
<button type="button" @click='questionsFinish' class="btn btn-primary"
:disabled="!isFinishStepEnabled">{{$lang.message.solution_calculate}}
</button>
</router-link>
This is the getter method
get getlang(): string {
return this.$lang.getLang();
}
This is how the route is defined
name: "summary",
path: "/" + languageParameter + "/summary/"