Categories

Jan 9 in Vue.JS

Q:

How to create Constants in Vue js.

1 Answer

Jan 9

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

Creating a Constant in Vue js.

export const SITE_URL = 'https://www.madanswer.com';

Importing a Constant in Vue js.

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

Click here to read more about Vue JS
Click here to read more about Insurance

Related questions

Madanswer
Jan 9 in Vue.JS
Jan 9 in Vue.JS
Oct 9, 2019 in Vue.JS
...