title: how to get checkbox value in angular?
body: <p>can you please tell me a way to get checkbox value in angular 2</p>
  
  <p>here is my code</p>
  
  <p><a href="https://stackblitz.com/edit/angular-grtvc7?file=src%2Fapp%2Fapp.module.ts" rel="noreferrer">https://stackblitz.com/edit/angular-grtvc7?file=src%2Fapp%2Fapp.module.ts</a></p>
  
  <p>one way I know how to do that using the template variable like this</p>
  
  <pre><code>&lt;mat-checkbox #ch&gt;Check me!&lt;/mat-checkbox&gt;
  
    checkCheckBoxvalue(ele){
      console.log(ele.checked)
    }
  </code></pre>
  
  <p>I want to know another way to achieve this functionality </p>