title: Primeng - dialog service passing data to dialog component
body: <p>Using PrimeNg's dynamic dialogue example shows how the destination dialogue can get data and display. 
  I can go through creating a service with observables to pass the data to the dialogue, but I know there are some arguments available to the dialogue service (like data) that can be passed through.
  How would the dialogue retrieve the data passed through the service?</p>
  
  <p><a href="https://www.primefaces.org/primeng/#/dynamicdialog" rel="noreferrer">https://www.primefaces.org/primeng/#/dynamicdialog</a>
  <a href="https://github.com/primefaces/primeng/blob/master/src/app/components/dynamicdialog/dynamicdialog-config.ts" rel="noreferrer">https://github.com/primefaces/primeng/blob/master/src/app/components/dynamicdialog/dynamicdialog-config.ts</a>
  <a href="https://github.com/primefaces/primeng/blob/master/src/app/components/dynamicdialog/dialogservice.ts" rel="noreferrer">https://github.com/primefaces/primeng/blob/master/src/app/components/dynamicdialog/dialogservice.ts</a></p>