daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div *ngFor="let report of reports">
  2.   <div *ngFor="let team  of teams">
  3.     <div *ngIf="report.teams_id==team.team_id">
  4.       <div *ngFor="let master  of filteredMasters">
  5.         <div *ngIf="master.teams_id==team.team_id">
  6.           <div *ngIf="master.date <= report.report_date">
  7.             {{master.name}}
  8.           </div>
  9.         </div>
  10.       </div>
  11.     </div>
  12.   </div>  
  13. </div>
  14.    
  15. masters: Masters[]
  16.   filteredMasters = []
  17.  
  18.   private loadMasters() {
  19.     this.mastersService.fetch().subscribe(
  20.       masters => {
  21.         this.masters = masters
  22.         this.filteredMasters = this.masters.filter(masters => _.max(masters.date))
  23.       }
  24.    )
  25.  }
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
 
Top