title: How to get the values of ion-checkboxes in ionic?
body: <p>I have 4 checkboxes. How do i get the values of those that are checked? What should i type in my typescript folder? I am trying to get the values so that i can save it into firebase. Here is my .html code.</p>
  
  <pre><code>&lt;ion-content padding&gt;
  &lt;ion-list&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Bedrooms&lt;/ion-label&gt;
    &lt;ion-checkbox [(ngModel)]="bedrooms" (ionChange)="updateBedrooms()"&gt;&lt;/ion-checkbox&gt;
  &lt;/ion-item&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Toilet&lt;/ion-label&gt;
    &lt;ion-checkbox [(ngModel)]="toilets" (ionChange)="updateToilets()"&gt;
  &lt;/ion-checkbox&gt;
  &lt;/ion-item&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Living Room&lt;/ion-label&gt;
    &lt;ion-checkbox [(ngModel)]="livingroom" (ionChange)="updateLivingRoom()"&gt;&lt;/ion-checkbox&gt;
  &lt;/ion-item&gt;
  &lt;ion-item&gt;
    &lt;ion-label&gt;Kitchen&lt;/ion-label&gt;
    &lt;ion-checkbox [(ngModel)]="kitchen" (ionChange)="updateKitchen()"&gt;
  &lt;/ion-checkbox&gt;
  &lt;/ion-item&gt;
  &lt;/ion-list&gt;
  
  &lt;button (click)="onLoadTasks()" ion-button block&gt;Choose Tasks&lt;ion-
   icon name="arrow-dropright"&gt;&lt;/ion-icon&gt;&lt;/button&gt;
  </code></pre>