Skip to main content

Video Modal

This section describes the BfmVideoModalComponent component.

Usage

You must import the BfmVideoModalComponent and provide it to ModalService to open the modal.

info

Modals are not components. They must be used with the ModalService to be opened.

To better understand, check the Modals documentation.

video-modal.component.ts
import { BfmVideoModalComponent } from '@celerofinancas/ui-user-kit';
import { ModalService } from "@celerofinancas/ui-modals";
import { Component, inject } from '@angular/core';

@Component({
standalone: true,
selector: 'video-modal',
templateUrl: './video-modal.component.html',
})
export class VideoModalComponent {
/**
* Modal service for handling modals
*/
private modalService = inject(ModalService);

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmVideoModalComponent);
};
}

Inputs

The BfmVideoModalComponent modalRef has no inputs.

Events

The BfmVideoModalComponent modalRef has no events.