title: Enable textbox if checkbox checked angular 6
body: <p>Trying to find a few examples on this, but all I seem to find are AngularJs examples.  </p>
  
  <p>Is it possible to enable my <code>textbox</code> when the <code>checkbox</code> in the same row is checked, without binding the checkbox to a <code>boolean</code> value, and binding that value to my `textbox', or without the need to write some Javascript?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ng-container *ngIf="showRowTextBox"&gt;
      &lt;td&gt;
          &lt;input type="text" placeholder="Enter text here" disabled onfocusout="onTextBoxFocusOut(row)"/&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;input type="checkbox" /&gt;
      &lt;/td&gt;
  &lt;/ng-container&gt;
  </code></pre>
  
  <p>For reference, here is the entire table layout:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table *ngIf="hasData" datatable [dtOptions]="dtOptions" [dtTrigger]="dtTrigger" class="table table-striped table-bordered"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th #tableBody *ngFor="let column of columns"&gt;
                  {{ column }}
              &lt;/th&gt;
              &lt;th *ngFor="let buttonColumnName of buttonColumnNames"&gt;
              &lt;/th&gt;
              &lt;ng-container *ngIf="showRowTextBox"&gt;
                  &lt;th&gt;{{ textBoxColumnName }}&lt;/th&gt;
                  &lt;th&gt;{{ checkBoxColumnName }}&lt;/th&gt;
              &lt;/ng-container&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr *ngFor="let row of model"&gt;
              &lt;ng-container *ngFor="let columnDataName of columnDataNames"&gt;
                  &lt;td *ngIf="modelConfig[columnDataName] &amp;&amp; modelConfig[columnDataName].isVisible"&gt;
                      &lt;ng-container *ngIf="modelConfig[columnDataName].isDate;"&gt;
                          {{ row[columnDataName] | date:'d MMM yyyy' }}
                      &lt;/ng-container&gt;
                      &lt;ng-container *ngIf="modelConfig[columnDataName].isBoolean;"&gt;
                          &lt;tfg-toggle onText="Yes" offText="No" [disabled]="true" [value]="row[columnDataName]"&gt;&lt;/tfg-toggle&gt;
                      &lt;/ng-container&gt;
                      &lt;ng-container *ngIf="!modelConfig[columnDataName].isBoolean &amp;&amp; !modelConfig[columnDataName].isDate"&gt;
                          {{ row[columnDataName] }}
                      &lt;/ng-container&gt;
                  &lt;/td&gt;
              &lt;/ng-container&gt;
              &lt;td *ngFor="let buttonColumnName of buttonColumnNames"&gt;
                  &lt;button (click)="executeButtonFunction(row[primaryKeyColumnName], buttonColumnName)" class="btn" [ngClass]="buttonColumnName === 'Delete' ? 'btn-danger' : 'btn-primary'"&gt;{{buttonColumnName}}&lt;/button&gt;
              &lt;/td&gt;
              &lt;ng-container *ngIf="showRowTextBox"&gt;
                  &lt;td&gt;
                      &lt;input type="text" placeholder="Enter text here" disabled  onfocusout="onTextBoxFocusOut(row)"/&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;input type="checkbox"/&gt;
                  &lt;/td&gt;
              &lt;/ng-container&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>