Skip to main content

Public Api Modal

This section describes the BfmPublicApiModalComponent component.

Usage​

You must import the BfmPublicApiModalComponent 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.

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

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

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

Inputs​

The BfmPublicApiModalComponent modalRef has no inputs.

Events​

The BfmPublicApiModalComponent modalRef has no events.