title: AngularDart ngIf else
body: <p>Does Angular<strong>Dart</strong> support else blocks in <a href="https://pub.dev/documentation/angular/latest/angular/NgIf-class.html" rel="nofollow noreferrer"><code>ngIf</code></a>? The best solution I can think of is <code>ngSwitch</code>:</p>
  
  <pre><code>&lt;div [ngSwitch]="condition"&gt;
    &lt;foo *ngSwitchCase="true"/&gt;
    &lt;bar *ngSwitchCase="false"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Doesn't seem very elegant though.</p>