Angular PrimeNG Dialog Templates Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog Templates in Angular PrimeNG. The Dialog Component is used to make a component containing some content to display in an overlay window. This article will show the Dialog Templating in Angular PrimeNG. The templates are used to put some content on some pre-structured containers. Angular PrimeNG Dialog Templates: header: It is used to define the header of the dialog.footer: It is used to define the footer of the dialog.content: It is used to define the content of the dialog. Creating Angular application & module installation: Step 1: Create an Angular application using the following command. ng new appname Step 2: After creating your project folder i.e. appname, move to it using the following command. cd appname Step 3: Install PrimeNG in your given directory. npm install primeng --save npm install primeicons --save Project Structure: It will look like the following: Steps to run the application: Run the below command to see the output ng serve --save Example 1: Below is the example code that illustrates the use of Angular PrimeNG Dialog Templates using the header and the content templates. app.component.html: HTML <h1 style="color: green">GeeksforGeeks</h1> <h5>Angular PrimeNG Dialog Templates.</h5> <p-button (click)="Geeks()" icon="pi pi-code" label="Show"> </p-button> <p-dialog [(visible)]="geeks" [style]="{ width: '40vw' }"> <ng-template pTemplate="header"> <h2>GeeksforGeeks</h2> </ng-template> <ng-template pTemplate="content"> <p> Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. </p> </ng-template> </p-dialog> app.component.ts: JavaScript import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', }) export class AppComponent { geeks: boolean; Geeks() { this.geeks = true; } } app.module.ts: JavaScript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { DialogModule } from 'primeng/dialog'; import { ButtonModule } from 'primeng/button'; @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule, DialogModule, ButtonModule ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] }) export class AppModule { } Output: Example 2: Below is another example code that illustrates the use of Angular PrimeNG Dialog Templates using the content and the footer templates. app.component.html: HTML <h1 style="color: green;">GeeksforGeeks</h1> <h5>Angular PrimeNG Dialog Templates.</h5> <p-button (click)="Geeks()" icon="pi pi-code" label="Show Geek"> </p-button> <p-dialog [(visible)]="geeks" [style]="{ width: '40vw' }"> <ng-template pTemplate="content"> <p> Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. </p> </ng-template> <ng-template pTemplate="footer"> <p-button icon="pi pi-check" (click)="geeks=false" label="Accept" styleClass="p-button-success"> </p-button> <p-button icon="pi pi-times" (click)="geeks=false" label="Reject" styleClass="p-button-danger"> </p-button> </ng-template> </p-dialog> app.component.ts: JavaScript import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', }) export class AppComponent { geeks: boolean; Geeks() { this.geeks = true; } } app.module.ts: JavaScript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { DialogModule } from 'primeng/dialog'; import { ButtonModule } from 'primeng/button'; @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule, DialogModule, ButtonModule ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] }) export class AppModule { } Output: Reference: https://primefaces.org/primeng/dialog Comment More infoAdvertise with us Next Article Angular PrimeNG Dialog Styling Y yourcontactformsubmitted Follow Improve Article Tags : Technical Scripter Web Technologies AngularJS Technical Scripter 2022 Angular-PrimeNG PrimeNG-Overlay +2 More Similar Reads ConfirmDialog ComponentAngular PrimeNG ConfirmDialog ComponentAngular PrimeNG is a framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use ConfirmDialog component in angular primeNG. The ConfirmDialog component is used to make a 4 min read Angular PrimeNG ConfirmDialog BasicAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. This article will show us how to use the ConfirmDialog Basic in Angular PrimeNG. The ConfirmDialog component is used to make a dialog 4 min read Angular PrimeNG ConfirmDialog PositionAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. This article will show us how to use the ConfirmDialog Position in Angular PrimeNG. The ConfirmDialog component is used to make a dialo 5 min read Angular PrimeNG ConfirmDialog ResponsiveAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will learn how to use the ConfirmDialog Responsive in Angular PrimeNG. The ConfirmDialog component is used to make 4 min read Angular PrimeNG ConfirmDialog EventsAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use Angular PrimeNG ConfirmDialog Events.  The ConfirmDialog component is used to make a dialog bo 3 min read Angular PrimeNG ConfirmDialog ConfirmationServiceAngular PrimeNG is a framework used with angular to create components with great styling, and this framework is very easy to use and is used to make responsive websites. In this article, we will see how to use ConfirmDialog ConfirmationService in Angular PrimeNG. The ConfirmDialog Component is used 3 min read Angular PrimeNG ConfirmDialog CustomizationAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use the ConfirmDialog Customization component in Angular PrimeNG. The ConfirmDialog Component is 6 min read Angular PrimeNG ConfirmDialog Animation ConfigurationAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. This article will show us how to use the ConfirmDialog Basic in Angular PrimeNG. The ConfirmDialog component is used to make a dialog b 4 min read Angular PrimeNG ConfirmDialog PropertiesAngular PrimeNG is a framework used with angular to create components with great styling. This framework is very easy to use and is used to make responsive websites. In this article, we will learn how to use the ConfirmDialog Properties in Angular PrimeNG. The ConfirmDialog Component is used to mak 6 min read Angular PrimeNG ConfirmDialog TemplatesAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use ConfirmDialog Templates in Angular PrimeNG. The ConfirmDialog Component is used to make a dia 3 min read Angular PrimeNG ConfirmDialog StylingA responsive website may be easily created using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we will see how to style the ConfirmDialog component in  Angular PrimeNG, along with understanding the styles and synt 5 min read ConfirmPopup ComponentAngular PrimeNG ConfirmPopup ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup component in Angular PrimeNG. The Confirm 4 min read Angular PrimeNG ConfirmPopup ConfirmationServiceAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup Component in Angular PrimeNG. The Confirm 4 min read Angular PrimeNG ConfirmPopup Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup Animation Configuration in Angular PrimeN 4 min read Angular PrimeNG ConfirmPopup PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup Properties in Angular PrimeNG. The Confir 5 min read Angular PrimeNG ConfirmPopup StylingA responsive website may be created with great ease using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we'll learn how to style the Angular PrimeNG ConfirmPopup Styling. With respect to the target, the ConfirmPop 4 min read Dialog ComponentAngular PrimeNG Dialog ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog component in Angular PrimeNG. We will also learn 8 min read Angular PrimeNG Dialog BasicAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Basic in Angular PrimeNG. We will also learn about t 6 min read Angular PrimeNG Dialog ModalAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Modal in Angular PrimeNG. We will also learn about t 6 min read Angular PrimeNG Dialog MaximizableAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Maximizable in Angular PrimeNG. We will also learn a 6 min read Angular PrimeNG Dialog PositionAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Position in Angular PrimeNG. We will also learn abou 5 min read Angular PrimeNG Dialog DimensionsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Dimensions in Angular PrimeNG. We will also learn ab 6 min read Angular PrimeNG Dialog ResponsiveAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Responsive in Angular PrimeNG. We will also learn ab 6 min read Angular PrimeNG Dialog Header and FooterAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Header and Footer in Angular PrimeNG. We will also l 3 min read Angular PrimeNG Dialog PositioningAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Positioning in Angular PrimeNG. We will also learn a 4 min read Angular PrimeNG Dialog Overlays InsideAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Angular PrimeNG Dialog Overlays Inside. The Dialog Componen 4 min read Angular PrimeNG Dialog Initial FocusAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Initial Focus in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG Dialog Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Dialog Animation Configuration in Angular PrimeNG. Dialog c 4 min read Angular PrimeNG Dialog PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Dialog Properties in Angular PrimeNG.  The Dialog com 7 min read Angular PrimeNG Dialog EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog Events in Angular PrimeNG. The Dialog Component 3 min read Angular PrimeNG Dialog TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog Templates in Angular PrimeNG. The Dialog Compone 3 min read Angular PrimeNG Dialog StylingA responsive website may be created with great ease using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we will learn how to style the Dialog Styling in Angular PrimeNG. The Dialog component is used to create a c 4 min read Dynamic Dialog ComponentAngular PrimeNG Dynamic Dialog ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Properties for DynamicDialogAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Properties for DynamicDialog in Angular PrimeNG. Dialog 5 min read Angular PrimeNG Dynamic Dialog EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Angular PrimeNG Dynamic Dialog Events. Dialogs are containers t 4 min read Angular PrimeNG Dynamic Dialog StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dynamic Dialog Styling in Angular PrimeNG. Dialogs are cont 4 min read OverlayPanel ComponentAngular PrimeNG OverlayPanel Show and HideAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dynamic OverlayPanel Show and Hide in Angular PrimeNG. Over 3 min read Angular PrimeNG OverlayPanel Dismissable and CloseIconAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dynamic OverlayPanel Dismissable and CloseIcon in Angular P 5 min read Angular PrimeNG OverlayPanel Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG OverlayPanel PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 6 min read Angular PrimeNG Dynamic OverlayPanel EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dynamic OverlayPanel TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dynamic OverlayPanel StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease.  In this article, we will see Angular PrimeNG Dynamic OverlayPanel Styling. OverlayPanel is a contai 4 min read Sidebar ComponentAngular PrimeNG Sidebar ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar component in Angular PrimeNG. We will also lear 5 min read Angular PrimeNG Sidebar PositionAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar Position in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG Sidebar SizeAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar Size in Angular PrimeNG. We will also learn abo 3 min read Angular PrimeNG Sidebar Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Sidebar Animation Configuration in Angular PrimeNG. Sidebar 3 min read Angular PrimeNG Sidebar Full ScreenAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar Full Screen in Angular PrimeNG. We will also le 3 min read Angular PrimeNG Sidebar PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Sidebar Properties in Angular PrimeNG. The Sidebar Com 5 min read Angular PrimeNG Sidebar EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Angular PrimeNG Sidebar Events. The Sidebar Component is used t 3 min read Angular PrimeNG Sidebar StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Sidebar component in Angular PrimeNG. The Sidebar compon 3 min read Tooltip ComponentAngular PrimeNG Tooltip ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Tooltip component in Angular PrimeNG. We will also lear 4 min read Angular PrimeNG Tooltip PositionsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Positions in Angular PrimeNG. Angular PrimeNG To 3 min read Angular PrimeNG Tooltip Focus and BlurAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Focus and Blur in Angular PrimeNG. Angular Prime 3 min read Angular PrimeNG Tooltip ButtonAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Button in Angular PrimeNG. Angular PrimeNG Toolt 3 min read Angular PrimeNG Tooltip EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip events in Angular PrimeNG. Angular PrimeNG Tool 3 min read Angular PrimeNG Tooltip DelayAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip events in Angular PrimeNG. Angular PrimeNG Tool 3 min read Angular PrimeNG Tooltip Scrolling ContainersAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Scrolling Containers in Angular PrimeNG. The To 3 min read Angular PrimeNG Tooltip PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip properties along with code examples in Angular P 5 min read Angular PrimeNG Tooltip StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to style the Tooltip Component in Angular PrimeNG. The Tooltip comp 3 min read Like