I'm using PrimeNG and I want to display a modal dialog programmatically. I understand I should use the DialogService
for this purpose. However its first argument expects a Component. This is practical when we want to create a complex dialog with dynamic content inside its body.
However I just want to display a simple text message like this
this._dialogService.open(`blah`, { header: 'some header' })
How can this be achieved with primeNG?