File

libs/video-stat-dashboard/src/video-container/video-container.component.ts

Metadata

selector video-container
templateUrl ./video-container.component.html

Index

Properties

Constructor

constructor(dashboardService: DashboardService)
Parameters :
Name Type Optional
dashboardService DashboardService no

Properties

currentVideo
currentVideo: Observable<Video>
Type : Observable<Video>
import { Component } from '@angular/core';
import { Observable } from 'rxjs/Observable';

import { DashboardService } from '../services/dashboard.service';
import { Video } from '../+state/video-stats.interfaces';

@Component({
  selector: 'video-container',
  templateUrl: './video-container.component.html'
})
export class VideoContainerComponent {

  currentVideo: Observable<Video>;

  constructor(dashboardService: DashboardService) {
    this.currentVideo = dashboardService.currentVideo;
  }
}
<video-container-display
[currentVideo]="currentVideo | async"
></video-container-display>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""