| Ex No: 12 | DISTANCE CONVERSION IN VUE.JS |
|---|---|
| Aim: | To create two text box one for kilometer and another for meter. When value is enterd in any one box the other distance measure is to be calculated. |
| Procedure | |
| Step1: Install Node Package Manager (npm) in the system. | |
| Step2: Create New Vue.js project using "npm create vue@latest". | |
| Step3: Open the created project folder and install the dependencies using "npm install". | |
| Step4: Create two components "AppTitle.vue" and "ConvElm.vue" place the components in projects src > components folder. | |
| Step6: Include the created components in "App.vue" file and provide proper template and CSS to show the compnents. | |
| Step7: Run the code using "npm run dev". | |
| Source Code | |
App.vue
AppTitle.vue
ConvElm.vue
|
|
| Result: | Thus vue.js application is created to perform distance conversion. |