title: How to take input value to the button to pass as a parameter?
body: <p>Here is my code in html. I want to parse the parameter called <code>area</code>(string) to <code>searchTeacher</code> function:</p>
  <pre><code>&lt;input  type=&quot;text&quot; placeholder=&quot;Search Teachers by Area&quot; aria-label=&quot;Search&quot;/&gt;  
  &lt;button type=&quot;button&quot; class=&quot;btn btn-light&quot; (click)=&quot;searchTeacher(area)&quot; (click)=&quot;hideMainList()&quot;&gt;&lt;/button&gt;
  </code></pre>