title: Angular 2 multiple checkboxes value
body: <p>I have this code which generates multiple checkboxes from database:</p>
  
  <pre><code>&lt;div *ngIf="edit"&gt;
  &lt;div class="checkbox" *ngFor="let contactType of contactTypes"&gt;
      &lt;label class="filled"&gt;
      &lt;input                                  
          type="checkbox"
          formControlName="types"
          name="types"
          value="{{contactType.id}}"                                                                  
          &gt; 
          {{contactType.name}}
      &lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I need to submit all values from checked check-boxes, and store the value in object property as a string, with values delimited by comma. How can I do this? Please have in mind that I'm pretty new to Angular.</p>