Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tbody>
- <ng-container *ngIf="matches">
- <tr *ngFor="let meci of matches">
- <td>{{ meci.id }}</td>
- <td>{{ meci.echipa1 }}</td>
- <td>{{ meci.echipa2 }}</td>
- <td>{{ meci.tip }}</td>
- <td>{{ meci.pretBilet }}</td>
- <td>{{ meci.nrLocuri }}</td>
- <td>{{ meci.data }}</td>
- <td class="ui center aligned">
- <span class="fas fa-trash red icon"></span>
- <span class="fas fa-edit teal icon" (click)="edit(meci)"></span>
- </td>
- </tr>
- </ng-container>
- </tbody>
- export class MatchesComponent implements OnInit {
- matches: Meci[];
- constructor(private service: MatchesService, private modalService: SuiModalService) { }
- ngOnInit() {
- this.service.getAll().subscribe(matches => this.matches = matches);
- }
- edit(meci: Meci) {
- console.log('edit');
- }
- }
- <ng-container *ngIf="matches.length > 0">
Add Comment
Please, Sign In to add comment