title: How to check checkbox base on Value received
body: <p><strong>Understanding</strong>
  Lets say i received value &quot;Yes&quot; and &quot;No&quot;. My question is i want to check the checkbox only when i received &quot;Yes&quot;.</p>
  <p><strong>codes that i tried</strong></p>
  <pre><code>&lt;section class=&quot;pleft ptop&quot; *ngFor=&quot;let item of patientPastMedicalHistoryList&quot;&gt;
                &lt;mat-checkbox color=&quot;primary&quot;
                (change)=&quot;patientPastHistoryForm.get('substanceAbuseAlcohol').setValue(
                  $event.checked ? 'Yes' : 'No')&quot; 
                  checked=&quot;{{item.substanceAbuseAlcohol ==='Yes'}}&quot; 
                 &gt;Alcohol&lt;/mat-checkbox&gt;&lt;br&gt;
                &lt;/mat-form-field&gt;
  &lt;/section&gt; 
  </code></pre>
  <p><strong>I have tried</strong>
  This doesnt help. Below code always check the checkbox even when the value received is &quot;NO&quot;</p>
  <p>[checked]=&quot;patientPastHistoryForm.get('substanceAbuseAlcohol').value=='Yes'&quot;</p>
  <pre><code> checked=&quot;{{item.substanceAbuseAlcohol ==='Yes'}}&quot;
  </code></pre>
  <p><strong>form</strong></p>
  <pre><code>this.patientPastHistoryForm = new FormGroup({
        patientId: new FormControl(this.clientId),
        substanceAbuseAlcohol: new FormControl(''),})
  </code></pre>
  <p><strong>data</strong></p>
  <pre><code> patientPastMedicalHistoryList: Array&lt;PatientPastMedicalHistoryModel&gt;=[];
  </code></pre>
  <p><strong>This is how i fetch the value</strong></p>
  <pre><code>  getPatientPastHistoryList() {
      debugger
      this.clientsService.getPatientPastHistoryList(this.clientId)
        .subscribe(
          (response: ResponseModel) =&gt; {
            if (response.statusCode === 200) {
              this.patientPastMedicalHistoryList = response.data;                                
            } else {
              this.patientPastMedicalHistoryList = [] ;           
            }
            this.patientPastHistoryForm.patchValue({
              ...response.data,
            })
          });
    }
  </code></pre>
  <p><strong>Received data</strong></p>
  <pre><code>{
    &quot;expires_in&quot;: 0,
    &quot;data&quot;: [
      {
        &quot;id&quot;: 0,
        &quot;patientId&quot;: 2143,
        &quot;substanceAbuseAlcohol&quot;: &quot;No&quot;,
        &quot;substanceAbuseMarijuana&quot;: &quot;Yes&quot;,
  }
  </code></pre>