I currently have a database with 5 books, but only 3 of them have prices listed. How can I modify my code to display an input box for all books, regardless of whether they have a price in the database? I am new to coding, so I would appreciate it if you could provide an answer based on my sample code. Thank you! :-)
Out of the 5 books in my database, only books 1, 3, and 5 have prices associated with them. I would like to display an input box for all books (including books 2 and 4) so that users can enter prices for those items as well.
<div ng-repeat="book in books">
<div>
<label>{{ book.Name }}</label>
<div ng-repeat="price in bookPrices | filter : { bookId : book.bookId } ">
<div>
<input type="text" class="form-control" name="val" ng-model="price.Value" maxlength="100">
</div>
</div>
</div>
</div>