Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get modal values
- @ViewChild('modal') private modal: TrendModalComponent;
- modalTitle: string;
- modalOptions: IModalOptions;
- constructor() { }
- ngOnInit() {
- // Modal settings
- this.modalTitle = '';
- this.modalOptions = {
- showCloseButton: true,
- };
- }
- // Open Modal
- onOpenModal() {
- this.modal.open();
- }
- // Listen to status change on Modal
- handleModalStatusChange(action: IModalEvent) {
- if (action.name === 'Close' || action.name === 'ClickAside') {
- this.video.nativeElement.src = '';
- this.video.nativeElement.src = 'https://www.youtube.com/embed/SQVJzty0dUo';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement