Commit 51c59ad3 authored by Xiaoyu Yang's avatar Xiaoyu Yang
Browse files

search properties

parent 62c6dc97
......@@ -13,8 +13,8 @@ import { AuthorService } from '../services/author.service';
})
export class SearchComponent implements OnInit {
books:any;
authors:any;
books = [];
authors=[];
searchResult = null;
// constructor() { }
......@@ -23,6 +23,7 @@ export class SearchComponent implements OnInit {
private authorService: AuthorService
) { }
searchText:any={};
searchBook: SearchOption = {
doSearch: (text) => {
this.bookService.searchBooks(text)
......@@ -49,6 +50,7 @@ export class SearchComponent implements OnInit {
searchOption: SearchOption = this.searchBook;
ngOnInit() {
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment