I was looking for solution on SO but still don't solve this problem. When user clicks on <a>
then he has to direct to component WrapPost and WrapPost shows him some information. But when user clicks on <a>
second time then nothing happend. How activate multi click on routerLink
and WrapPost will update everytime?
Component Search
<div class="formShell">
<a class="aSearch" [routerLink]="['/search']"
[queryParams]="{category: selectedCategory, search: searchForm.value}">
<input class="searchForm" placeholder="..." #searchForm>
</div>
Routes
const appRoutes: Routes = [
{ path: '', component: Home },
{ path: 'search', component: WrapPost},
{ path: 'login', component: Login },
{ path: '**', component: Error }
];