title: ionic 3 dynamic class (ngClass)
body: <p>So I am pretty new to this.
  I using Ionic 3 and trying to dynamically choose which class to use based on a condition but I cannot get ngClass to work...
  Any help would be appreciated.</p>
  
  <pre><code>    &lt;div ng-class="test: data[i].complete ? 'completed' : 'notCompleted'&gt;
        &lt;div class="dueDate"&gt;{{ data[i].dueDate }}&lt;/div&gt;
        &lt;div class="taskLabel"&gt;{{ data[i].taskLabel }}&lt;/div&gt;
        &lt;div class="checkBox"&gt;
          &lt;img src="{{ data[i].complete_url }}" style="width : 100% ; height : 100%" (click)="CheckBox(i)"&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>