diff --git a/basics-assignment-2-problem/app.js b/basics-assignment-2-problem/app.js index e69de29..f1111ae 100644 --- a/basics-assignment-2-problem/app.js +++ b/basics-assignment-2-problem/app.js @@ -0,0 +1,23 @@ +"use strict"; + +const app = Vue.createApp({ + data() { + return { + firstInputValue: "", + secondInputValue: "", + }; + }, + methods: { + showAlert() { + alert("Some alert"); + }, + updateFirstOutput(event) { + this.firstInputValue = event.target.value; + }, + updateSecondOutput(event) { + this.secondInputValue = event.target.value; + }, + }, +}); + +app.mount("#assignment"); diff --git a/basics-assignment-2-problem/index.html b/basics-assignment-2-problem/index.html index fca1669..7f0e492 100644 --- a/basics-assignment-2-problem/index.html +++ b/basics-assignment-2-problem/index.html @@ -1,33 +1,33 @@ - + + Vue Basics - + - - + + +
-

Events

+

Events

-

Event Practice

- - -
- - -

OUTPUT

-
- - -

OUTPUT

+

Event Practice

+ + +
+ + +

{{ firstInputValue }}

+
+ + +

{{ secondInputValue }}

- + +