Advertisement
loloof64

Udemy VueJS course - Assignment 4 - Js

Oct 1st, 2020
1,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const app = Vue.createApp({
  2.   data() {
  3.     return {
  4.       userSelectedClass: "",
  5.       paragraphVisibilityClass: "visible",
  6.       userSelectedBackgroundColor: 'white',
  7.     };
  8.   },
  9.   methods: {
  10.     toggleParagraphVisibility() {
  11.       this.paragraphVisibilityClass =
  12.         this.paragraphVisibilityClass === "visible" ? "hidden" : "visible";
  13.     },
  14.   },
  15. });
  16.  
  17. app.mount("#assignment");
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement