SHARE
TWEET

Untitled

a guest Jun 26th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div *ngFor="let event of events">
  2.    <div>Eventname:{{event.name}} </div>
  3.    <div> Amount of Arrival: {{event.arrival.length}} </div>
  4. </div>
  5.      
  6. Event{
  7.   a{
  8.     date: "12,Nov"
  9.     name: "best event"
  10.     arrival:{
  11.       a{
  12.         name:"david",
  13.         from:"USA"
  14.        }
  15.       b{
  16.         name:"Mike",
  17.         from:"GER"
  18.        }
  19.     }
  20.    }
  21. }
  22.      
  23. getDataList(listpath:string){
  24.     this.itemsRef = this.db.list(listpath);
  25.     this.items = this.itemsRef.snapshotChanges().pipe(
  26.       map(changes =>
  27.         changes.map(c => ({ key: c.payload.key, ...c.payload.val() }))
  28.       )
  29.     );
  30.   return this.items;
  31.   }
  32.      
  33. this.db.getDataList("/Event/" ).subscribe(res => {
  34.      this.events=res;
  35.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top