title: How to check is checkbox is checked angular2
body: <p>I want to check is checkbox is checked or unchecked in an if and else statement.</p>
  
  <pre><code>&lt;md-checkbox id="mon" (change)="mon($event)" [checked]="true"&gt;Checked&lt;/md-checkbox&gt;
  
  
  
  mon(e){
      if(e.target.checked){
        console.log("This is checked")
      } else {
        console.log("unchecked");
      }
    }
  </code></pre>
  
  <p>I think I am doing it really wrong. I keep getting can't get checked of undefined. How is the way to do this?</p>