[Trunk|Library]: searchForm.component: 'link' input parameter type changed from 'boolean' to 'string'.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55220 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
826e084a2e
commit
afc1cca4fa
|
@ -24,7 +24,7 @@ export class SearchFormComponent {
|
|||
@Input() keyword: string = '';
|
||||
@Input() generalSearch: boolean = false;
|
||||
@Input() placeholderText: string = "Type keywords";
|
||||
@Input() link: boolean = false;
|
||||
@Input() link: string = "";
|
||||
public routerHelper:RouterHelper = new RouterHelper();
|
||||
|
||||
@Output() keywordChange = new EventEmitter();
|
||||
|
@ -43,6 +43,7 @@ export class SearchFormComponent {
|
|||
});
|
||||
}
|
||||
goTo() {
|
||||
this._router.navigate(['/search/find'], { queryParams: this.routerHelper.createQueryParam('keyword',this.keyword) });
|
||||
//this._router.navigate(['/search/find'], { queryParams: this.routerHelper.createQueryParam('keyword',this.keyword) });
|
||||
this._router.navigate([this.link], { queryParams: this.routerHelper.createQueryParam('keyword',this.keyword) });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue