Skip to content

Instantly share code, notes, and snippets.

@bariscanyilmaz
Created April 24, 2019 19:23
Show Gist options
  • Save bariscanyilmaz/7edc9c8c34e1f817e0c00c5b3d7d8faf to your computer and use it in GitHub Desktop.
Save bariscanyilmaz/7edc9c8c34e1f817e0c00c5b3d7d8faf to your computer and use it in GitHub Desktop.
<div class="container">
<div class="category-list">
<mat-button-toggle-group #categoryGroup="matButtonToggleGroup">
<mat-button-toggle [value]="category.Name" *ngFor="let category of categories">
{{category.Name}}
</mat-button-toggle>
</mat-button-toggle-group>
</div>
<button mat-fab color="warn" [disabled]="!categoryGroup.value" (click)="getBook(categoryGroup.value)">Get</button>
<div class="actions">
<button mat-flat-button color="primary" (click)="openAddBook()" class="btn-add-book">Add Book</button>
<button mat-flat-button color="primary" (click)="openAddCategory()" class="btn-add-category">Add Category</button>
</div>
</div>
<swal #swalInformation title=" " text="No books were found in the category you selected." type="info"></swal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment