aboutsummaryrefslogtreecommitdiff
path: root/sandbox/TestIvanLjubisavljevic/frontend/src/app/homepage/homepage.component.html
blob: 406ff0ea929fdb1135a0beae04504e879eda666d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<table *ngIf="laptops">
    <tr>
        <th colspan="11">SPISAK DOSTUPNIH LAPTOPOVA</th>
    </tr>
    <tr>
        <th>BREND</th>
        <th>MODEL</th>
        <th>RAM</th>
        <th>MEMORIJA</th>
        <th>GRAFIKA</th>
        <th>EKRAN</th>
        <th>PROCESOR</th>
        <th>CENA</th>
        <th>UREDI</th>
        <th>OBRIŠI</th>
    </tr>
    <tr *ngFor="let laptop of laptops" (click)="pogledaj(laptop.id)">
        <td>{{laptop.brand}}</td>
        <td>{{laptop.model}}</td>
        <td>{{laptop.ram}} gb</td>
        <td>{{laptop.hdd}} gb</td>
        <td>{{laptop.graphics}}</td>
        <td>{{laptop.display}}"</td>
        <td>{{laptop.processor}}</td>
        <td>{{laptop.price}}</td>
        <td ><button (click)="izmeni(laptop)">IZMENI</button></td>
        <td ><button (click)="obrisi(laptop)">ORBIŠI</button></td>
    </tr>
</table>