[Vuejs]-How can I append a string to a constant in a Vue template?

1👍

Have you tried just adding the strings using + ….

<button
          v-analytics:click="'Consumer Create - ' + $ANALYTICS_EVENTS.CONTINUE"
          :disabled="errors.any()"
          class="btn-primary uppercase fill"
          data-test="btn-identity"
          type="submit">{{ $t('create.continueCTA') }}</button>
👤Teddy

Leave a comment