view src/app/feature-extraction-menu/feature-extraction-menu.component.html @ 442:51a5df5569a4

No need for ternary operator, coalesce to default value.
author Lucas Thompson <dev@lucas.im>
date Mon, 26 Jun 2017 11:07:20 +0100
parents 55e17af8a0ee
children cf4a17efb5d4
line wrap: on
line source
<div class="container">
  <md-list dense>
    <ng-container
      *ngFor="let extractor of extractors"
    >
      <h3 md-subheader>{{extractor.name}}</h3>
      <md-list-item
        *ngFor="let output of extractor.outputs"
        (click)="extract(output)">
        <md-icon md-list-icon>{{getFeatureIconName(output)}}</md-icon>
        <h4 md-line>{{output.name}}</h4>
        <p md-line>{{output.combinedKey}}</p>
        <button md-icon-button
                (click)="extract(output); $event.stopPropagation()"
                [disabled]="disabled">
          <md-icon>add</md-icon>
        </button>
      </md-list-item>
      <md-divider></md-divider>
    </ng-container>
  </md-list>
  <md-spinner *ngIf="isLoading"></md-spinner>
  <button
    md-button
    (click)="load()"
    [disabled]="isLoading"
  >Load more</button>
</div>