1 2 3 4 5 6 7 8 9 10 11 12
import { Component, Input } from '@angular/core' import { Video } from './video.model' @Component({ selector: 'my-video-thumbnail', styleUrls: [ './video-thumbnail.component.scss' ], templateUrl: './video-thumbnail.component.html' }) export class VideoThumbnailComponent { @Input() video: Video @Input() nsfw = false }