title: checkbox event binding with button in angular2
body: <p>I'm using angular. I have an input <code>type"checkbox"</code> and a button next to it. When clicking the button a method is called, <code>abc()</code>. I have to check whether checkbox is checked or not on the click of button.</p>
  
  <p><strong>app.component.html</strong></p>
  
  <pre><code>&lt;input type="checkbox" id="chckbx"&gt;
  &lt;button (click)="abc();" class="btn btn-success"&gt;Search &lt;/button&gt;
  </code></pre>
  
  <p><strong>app.component.ts</strong>-</p>
  
  <pre><code>abc(){}
  </code></pre>