Mercurial > hg > ugly-duckling
view src/app/analysis-item/analysis-item.component.ts @ 179:dadde8a1648c
Explicitly fill width of parent
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 22 Mar 2017 11:15:45 +0000 |
parents | 53dd17c06724 |
children | 7cd274d296a3 |
line wrap: on
line source
/** * Created by lucast on 21/03/2017. */ import {Component, Input} from "@angular/core"; export interface Analysis { audioUri: string; combinedKey: string; } @Component({ selector: 'ugly-analysis-item', templateUrl: './analysis-item.component.html', styleUrls: ['./analysis-item.component.css'] }) export class AnalysisItemComponent { private _audioBuffer: AudioBuffer; @Input() set audioBuffer(buffer: AudioBuffer) { this._audioBuffer = buffer || undefined; if (this.audioBuffer) { } } get audioBuffer(): AudioBuffer { return this._audioBuffer; } }