Firebase and JavaScript: Update fetched data on website from real time database without reloading website [closed]

I want to deploy a website to Firebase. The website has to fetch data from the firebase database. If the values from the database has been updated I want that the fetched data on the website will be …

How to set the value of a background Image in Vue using a URL generated by an API

I am trying to set the value of the background image of my #app element in Vue to the response that is generated from Unsplash’s API. I am able to retrieve the image URL, but I am having some difficulty in trying to relay that information to the background style element. Overall, my goal is to use a random image and display it on the screen every page reload. My method: I pulled down the URL from the Unsplash API in the methods section I then created an image in the data section and set that equal to the response