title: Angular 4 - Toggle Switch to detect status
body: <p>I am using the library toggle-switch:
  <a href="https://ghinda.net/css-toggle-switch/" rel="nofollow noreferrer">Toogle Switch</a></p>
  
  <p>This my switch element:</p>
  
  <pre><code>&lt;label class="switch-light switch-material"&gt;
      &lt;input type="checkbox"&gt;
      &lt;strong class="large-4 columns float-left"&gt;
          Off
      &lt;/strong&gt;
      &lt;span class="large-4 columns float-left"&gt;
          &lt;span&gt;Off&lt;/span&gt;
          &lt;span&gt;On&lt;/span&gt;
          &lt;a (click)="detectStatus(true or false)"&gt;&lt;/a&gt;
      &lt;/span&gt;
      &lt;strong class="large-4 columns float-left"&gt;
          On
      &lt;/strong&gt;
  &lt;/label&gt;
  </code></pre>
  
  <p>Using the function detectStatus(), I want to send as parameter value false if the status is Off and true if the status is On.</p>
  
  <p>How could do it? thanks,</p>