Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. const db = firebase.firestore()
  2. const counterRef = db.doc('counters/bigRedButtonCounter')
  3.  
  4. /* Grab whatever the current counter counts value is... */
  5.  
  6. incrementCounter() {
  7. counterRef.update({ counts: currentCounts + 1 })
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement