in Vue.JS by

How to create Constants in Vue js.

▼ Show 1 Answer

0 votes

To create constant const keyword is used.In Vue.js we suggest to create a seperate file for defining your consants.

Creating a Constant in Vue js.

export const SITE_URL = '';

Importing a Constant in Vue js.

import {SITE_URL} from './path/to/constants.js';

Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell