Table of Content
Adding tags as string
Currently we just treat the tags as string, so it is same as the isbn and title field.
In the form of adding book, we add an input for the tags.
1<li><input type='text' data-mini='true' id='book-tags' placeholder='Tags (Separated by comma)'></li>
And the book entry template too.
In order to search by tags, we add data-filter='true'
to the books list ul
.
And we add tags to everywhere with title and isbn, including the view and the addBook
function.
What’s next? We’re going to take a look at “Refractoring the LocalStorage module”.