Question: Modifying your prac 6 . html , prac 6 . css , and prac 6 . js files: Create a Vue.js data property called show

Modifying your prac6.html, prac6.css, and prac6.js files:
Create a Vue.js data property called show_ad whose initial value is set to true.
Set up your page so that:
if show_ad is true
the div with id ad is present and visible on the page
main element is not present on the page
if show_ad is false
main element is present and visible on the page
the div with id ad is not present on the page
If you've done this correctly, clicking the close button should hide the ad div and display the main div.
Do not change onclick attribute of the close button.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!