27 lines
645 B
TypeScript
27 lines
645 B
TypeScript
import { Component, OnInit, Inject } from '@angular/core';
|
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
|
|
|
|
@Component({
|
|
selector: 'app-youtube-popup',
|
|
templateUrl: './youtube-popup.component.html',
|
|
styleUrls: ['./youtube-popup.component.css']
|
|
})
|
|
export class YoutubePopupComponent implements OnInit {
|
|
|
|
public title: string;
|
|
public embedUrl: string;
|
|
|
|
constructor(@Inject(MAT_DIALOG_DATA) public data: any, private MatDialogRef: MatDialogRef<YoutubePopupComponent>) {
|
|
this.title = data.title;
|
|
this.embedUrl = data.embedUrl;
|
|
}
|
|
|
|
ngOnInit() {
|
|
}
|
|
|
|
public close() {
|
|
this.MatDialogRef.close();
|
|
}
|
|
|
|
}
|