title: Fetch value from input field and pass into the router link
body: <p>I'm new to the angular, so I just wanted simple approach to get the value from input field and pass that into the router link in anchor tag.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;form [formGroup] class="form-inline my-2 my-lg-0"&gt; 
      &lt;input
        class="form-control mr-sm-2"
        type="text"
        placeholder="Search"
        name="searchValued"
        [(ngModel)]="searchedValue"&gt;
      &lt;a [routerLink]="['/getSearchedBusiness', searchedValue]" class="btn btn-primary"&gt;Search&lt;/a&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>