title: CheckBox Button On/Off state
body: <p>I am using Angular 6 for my project and have a single slider radio button in my code.</p>
  
  <p>I have a function <code>switchClicked</code> which is responsible for handling certain events based on an ON/OFF state of this button. </p>
  
  <p>Is there any way to pass an On/Off value of this button to my function.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="col-3"&gt;
    &lt;label class="slider-switch"&gt;
      &lt;input type="checkbox" checked (click)="switchClicked()"&gt;
      &lt;span class="slider-slider round"&gt;&lt;/span&gt;
    &lt;/label&gt;
  &lt;/div&gt;
  </code></pre>