andreadc

gallery.component.html

Feb 19th, 2020
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.05 KB | None | 0 0
  1. <h2>Welcome to Car Gallery</h2>
  2. <div class="container">
  3.     <div class="filterBox">
  4.         <label><input type="checkbox" id="all" name="all" value="all" [(ngModel)]="checkboxAll.checked" (change)="checkboxChange($event)">all</label>
  5.         <div class="checkboxList" *ngFor="let brand of brands">
  6.         <label><input type="checkbox" [(ngModel)]="brand.checked" id="{{brand.brand}}" name="{{brand.brand}}" value="{{brand.brand}}" (change)="checkboxChange($event)">{{brand.brand}}</label>
  7.         </div>
  8.     </div>
  9.     <div class="gallery">
  10.         <div class="card" *ngFor="let car of cars">
  11.             <a routerLink="/gallery/details/{{car.id}}"><img src="assets/{{car.image1}}" width="50%" height="50%"></a>
  12.             <div class="description-contenier">
  13.                 <p class="description">Id:{{car?.id}}</p>
  14.                 <p class="description">Model:{{car?.model}}</p>
  15.                 <p class="description">Brand:{{car?.brand}}</p>
  16.                 <p class="description">{{car?.username}}</p>
  17.             </div>
  18.         </div>
  19.     </div>
  20. </div>
Add Comment
Please, Sign In to add comment