Skip to main content

Warning Modal

This section describes the BfmWarningModalComponent component.

Usage​

You must to import the BfmWarningModalComponent 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 a better understanding, check the Modals documentation.

warning-modal.component.ts
import { BfmWarningModalComponent } from '@celerofinancas/ui-charges';
import { ModalService } from "@celerofinancas/ui-modals";
import { Component, inject } from '@angular/core';

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

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

Inputs​

The BfmWarningModalComponent component has no inputs.

Events​

The BfmWarningModalComponent component has no events.