comparison src/app/notebook-feed/notebook-feed.component.ts @ 171:9556954478f2

Introduce a component representing a feed of analyses on an audio file. A collection of analysis items. Basically a placeholder right now.
author Lucas Thompson <dev@lucas.im>
date Tue, 21 Mar 2017 17:10:59 +0000
parents
children 539dd65d56ea
comparison
equal deleted inserted replaced
170:53dd17c06724 171:9556954478f2
1 /**
2 * Created by lucast on 21/03/2017.
3 */
4 import {Component, Input} from "@angular/core";
5
6 @Component({
7 selector: 'ugly-notebook-feed',
8 templateUrl: './notebook-feed.component.html',
9 styleUrls: ['./notebook-feed.component.css']
10 })
11 export class NotebookFeedComponent {
12 private _audioBuffer: AudioBuffer;
13
14
15 @Input()
16 set audioBuffer(buffer: AudioBuffer) {
17 this._audioBuffer = buffer || undefined;
18 if (this.audioBuffer) {
19
20 }
21 }
22
23 get audioBuffer(): AudioBuffer {
24 return this._audioBuffer;
25 }
26 }