Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Open sidebar
w.pan
bookle
Commits
51c59ad3
Commit
51c59ad3
authored
Feb 03, 2019
by
Xiaoyu Yang
Browse files
search properties
parent
62c6dc97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/app/search/search.component.ts
src/app/search/search.component.ts
+4
-2
No files found.
src/app/search/search.component.ts
View file @
51c59ad3
...
...
@@ -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
()
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment