title: Primeng checkbox checked issue angular
body: <p>In my working on angular 8 application where I am using primeng checkbox and I have some issue.Checkbox data is coming from db. So if status==0, I have to make it unchecked and if status==1, it should be selected even if load the table(default). I tried many ways and its not working. Can any one please point me the issue or any suggestions will be of great help.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> onStatusChange(id: number,status: number) {
          this.id = id;
          console.log('Id', id);
          console.log('Checked');
          this.status = status;
          console.log('Status', status);
          
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p-checkbox [value]="text.id" [(ngModel)]="status" binary="true"  (onChange)="onStatusChange(TextID,status)"&gt;&lt;/p-checkbox&gt;</code></pre>
  </div>
  </div>
  
  Data from db is coming like this</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{"Text":
  [
    {"ID":"1","Name":"Text","textContent":"content1,"status":"1"},
    {"ID":"2","Name":"Text","textContent":"content1,"status":"1"},
    {"ID":"3","Name":"Text","textContent":"content1,"status":"0"}
  ]
  }
   
     </code></pre>
  </div>
  </div>
  
  Tried  ternary if statement inside inside ngModel and ngModelChange</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>text.IsActive[text.IsActive==1?'true':'false'</code></pre>
  </div>
  </div>
  </p>
  <p>I am getting the required data in onStatusChange to make it active or inactive for updating it to DB. But problem lies in making checkbox checked based on the selection while loading the data.
  Please help me.. stuck here for the last few days..</p>