<div>
    Name: <input type="text" name="name" [(ngModel)]="book.name"><br/>
    Author: <input type="text" name="author" [(ngModel)]="book.author"><br/>
    Pages: <input type="number" name="pages" [(ngModel)]="book.pages"><br/>
    <button (click)="addBook()">Add book</button>
    {{message}}
</div>
