i want the functionality of writing in the input bar, and when i press the button, i want it to pass me to: "../search/". but instead i get "../search/undefined".
this is the code:
<input type="text" placeholder="Search" ng-model="searchedValue">
and:
<button [routerLink]="['/search', searchedValue]" routerLinkActive="is-active">search</button>
what do i do wrong?