I am new on using PrimeNG and I need a confirmation dialog box. I read the documentation about confirmation dialog and implemented it on my component.
my-component.ts
import { ConfirmDialogModule, ConfirmationService } from 'primeng/primeng';
my-component.html
<p-confirmDialog header="Order Confirmation" icon="fa fa-question-circle" width="425" #cd>
<p-footer>
<button type="button" pButton icon="fa-close" label="No" (click)="cd.reject()"></button>
<button type="button" pButton icon="fa-check" label="Yes" (click)="cd.accept()"></button>
</p-footer>
</p-confirmDialog>
app.module.ts
import { ConfirmDialogModule, ConfirmationService } from 'primeng/primeng';
@NgModule({
declarations: [
],
imports: [
BrowserModule,
ConfirmDialogModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
AppRoutingModule
],
providers: [ConfirmationService],
bootstrap: [AppComponent]
})
export class AppModule { }
Anything that I missed that triggers the error? Please enlighten me.