title: how to implement if-else condition with ng-class?
body: <p>I am trying to use two different grid columns binding to <code>ng-class</code> with if-else condition. I am unable to do it properly. Can someone guide where I am doing wrong. thanks.</p>
  <p>HTML</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div ng-class=&quot;{'col-md-11': test1 === null, 'col-md-6' : test1 !== null}&quot; *ngIf=&quot;(test !== null)&quot;&gt;
  &lt;div&gt;
  &lt;div ng-class=&quot;{'col-md-11': test === null, 'col-md-6' : test !== null}&quot; *ngIf=&quot;(test1 !== null)&quot;&gt;
  &lt;div&gt;
  </code></pre>