view src/app/app.component.html @ 204:bdfd4b4b7130

Close over locally scoped variables for the HammerJS event handlers.
author Lucas Thompson <dev@lucas.im>
date Fri, 24 Mar 2017 12:08:36 +0000
parents f9088265a1fc
children 76f2cd2c5a68
line wrap: on
line source
<div class="app-container">
  <div class="app-header">
    <md-toolbar color="primary">
      <md-icon svgIcon="duck"></md-icon>

      <span class="app-toolbar-filler"></span>

      <app-playback-control></app-playback-control>
      <ugly-recording-control
        (finishedRecording)="onFileOpened($event)"
      ></ugly-recording-control>

      <!-- This fills the remaining space of the current row -->
      <span class="app-toolbar-filler"></span>


      <app-audio-file-open
        (fileOpened)="onFileOpened($event)"
      ></app-audio-file-open>
      <!-- menu opens when trigger button is clicked -->
      <button md-icon-button (click)="sidenav.toggle()">
        <md-icon>extension</md-icon>
      </button>
    </md-toolbar>
  </div>

  <div class="app-content">
    <md-sidenav-container>
      <md-sidenav #sidenav align="start" mode="over">
        <app-feature-extraction-menu
          (requestOutput)="extractFeatures($event)"
          [disabled]="!canExtract">
        </app-feature-extraction-menu>
      </md-sidenav>
      <ugly-notebook-feed
        [analyses]="analyses"
        [rootAudioUri]="rootAudioUri"></ugly-notebook-feed>
    </md-sidenav-container>
  </div>

  <div class="app-footer">
    <md-toolbar color="primary">

      <!-- menu opens when trigger button is clicked -->
      <button md-icon-button (click)="sidenav.toggle()">
        <md-icon>extension</md-icon>
      </button>
    </md-toolbar>

  </div>
</div>