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'; ...@@ -13,8 +13,8 @@ import { AuthorService } from '../services/author.service';
}) })
export class SearchComponent implements OnInit { export class SearchComponent implements OnInit {
books:any; books = [];
authors:any; authors=[];
searchResult = null; searchResult = null;
// constructor() { } // constructor() { }
...@@ -23,6 +23,7 @@ export class SearchComponent implements OnInit { ...@@ -23,6 +23,7 @@ export class SearchComponent implements OnInit {
private authorService: AuthorService private authorService: AuthorService
) { } ) { }
searchText:any={};
searchBook: SearchOption = { searchBook: SearchOption = {
doSearch: (text) => { doSearch: (text) => {
this.bookService.searchBooks(text) this.bookService.searchBooks(text)
...@@ -49,6 +50,7 @@ export class SearchComponent implements OnInit { ...@@ -49,6 +50,7 @@ export class SearchComponent implements OnInit {
searchOption: SearchOption = this.searchBook; searchOption: SearchOption = this.searchBook;
ngOnInit() { 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