Ex No: 10 | ADDITION USING CLICK EVENT IN VUE.JS |
---|---|
Aim: | To perform addition using click event in Vue.js. |
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 "CalcElm.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
CalcElm.vue
|
|
Result: | Thus vue.js application is created to perform addition using click event. |