Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
559 views
in Technique[技术] by (71.8m points)

javascript - Can I update the ejs template when I get a new snapshot from Firebase without refreshing (using nodejs,express and Firebase)?

I am using Node.js and express on my website and I get the data that I represent from firebase (real-time database). I render the ejs file. When I change the data in firebase I can see the updated data in console.log() but I can't see the updated data on the website without refreshing the page. Is there a way for me to update the ejs template when I get a new snapshot?

The code snipped I have the snapshots from Firebase

question from:https://stackoverflow.com/questions/65888230/can-i-update-the-ejs-template-when-i-get-a-new-snapshot-from-firebase-without-re

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...