I attempted to declare a constant in a .vue file:
<script>
export const CREATE_ACTION = 1,
export const UPDATE_ACTION = 2
<script>
Then, I tried to use them in the template:
<template>
...
<select :disabled="mode === UPDATE_ACTION">
....
</template>
Unfortunately, it doesn't seem to be working. How can I make use of constants in a Vue template?