Mercurial > hg > ugly-duckling
view src/app/notebook-feed/notebook-feed.component.ts @ 201:d179cf7df697
First attempt at the feed containing items. Currently breaks analyses into distinct, separated segments, based on each item marked as root.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 24 Mar 2017 11:07:26 +0000 |
parents | a50feba0d7f0 |
children | 77ada2e07997 |
line wrap: on
line source
/** * Created by lucast on 21/03/2017. */ import {Component, Input} from "@angular/core"; import Waves from 'waves-ui'; import {AnalysisItem} from "../analysis-item/analysis-item.component"; @Component({ selector: 'ugly-notebook-feed', templateUrl: './notebook-feed.component.html', styleUrls: ['./notebook-feed.component.css'] }) export class NotebookFeedComponent { sharedTimeline: Timeline; @Input() analyses: AnalysisItem[]; @Input() set rootAudioUri(uri: string) { this._rootAudioUri = uri; // TODO is this safe? will the fact references are held elsewhere // keep the previous instance alive? Or will it get garbage collected in // screw previous layers up? this.sharedTimeline = new Waves.core.Timeline(); } get rootAudioUri(): string { return this._rootAudioUri; } private _rootAudioUri: string; constructor() { this.sharedTimeline = new Waves.core.Timeline(); this.analyses = []; } }