Name: <input type="text" [(ngModel)]="newBook.name"><br/>
Author: <input type="text" [(ngModel)]="newBook.author"><br/>
Pages: <input type="text" [(ngModel)]="newBook.pages"><br/>
<button (click)="addBook()">Add</button>
<hr/>
<table>
  <tr>
    <th>Name</th>
    <th>Akcija</th>
  </tr>
  <tr *ngFor="let book of allBooks">
    <td>{{book.name}}</td>
    <td>
      <button (click)="delete(book)">Brisi</button>
    </td>
  </tr>
</table>
