Inject NeuConfirmDialogService and call confirm(data). The service creates the dialog; do not place NeuConfirmDialogComponent directly in a template because it requires dialog data and a DialogRef. The returned Promise resolves true on acceptance and false on rejection, Escape or backdrop dismissal. Perform the destructive operation only after true. The asynchronous result is part of this service contract.
Inject NeuConfirmDialogService and call confirm(data). The service creates the dialog; do not place NeuConfirmDialogComponent directly in a template because it requires dialog data and a DialogRef. The returned Promise resolves true on acceptance and false on rejection, Escape or backdrop dismissal. Perform the destructive operation only after true. The asynchronous result is part of this service contract.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Public configuration
Name
Contract
NeuConfirmDialogService
export declare class NeuConfirmDialogService {
confirm(data: NeuConfirmDialogData): Promise<boolean>;
}
Public Types
Open a type to inspect its definition and interface fields.
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-error
Invalid field or danger-action color
Shared by other Core consumers; scope the override.
#dc2626
--neu-focus-ring
Normal keyboard-focus ring
Shared by other Core consumers; scope the override.