Geep5

Untitled

Jun 29th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <script>
  2. import {AndretheDB} from './AndretheGiant.js'
  3. let shnurgs = []
  4. AndretheDB.collection('users').onSnapshot( data => {
  5. shnurgs = data.docs
  6. })
  7. // this is Users.svelte in the tutorial https://www.youtube.com/watch?v=Rr2kKjYIYRM&t=1890s
  8. /console.log('AndretheDB ',AndretheDB)
  9. </script>
  10.  
  11. <div id="users">
  12. Users
  13. {#each shnurgs as shnurgs}
  14. {shnurgs.id}
  15. <div>user</div>
  16. {JSON.stringify(shnurgs.data)}
  17. {/each}
  18.  
  19. </div>
  20.  
  21. <style>
  22.  
  23. </style>
Add Comment
Please, Sign In to add comment