title: PrimeNG - How to change the style of pTemplate="caption" in p-table for a single component
body: <p>I'd like to change the background color of the caption cell of my <code>p-table</code> in only one component, how can I do?</p>
  <p>I tried <code>&lt;ng-template pTemplate=&quot;caption&quot; class=&quot;myStyle&quot;&gt;</code></p>
  <p>and     <code>.myStyle{ background: rgb(9,169,121) !important; }</code>
  in my.component.scss</p>
  <p>but it doesn't work.</p>
  <p>Help me! Thanks!</p>
  <hr />
  <p>Edit: Finally it works! I see the answer of @Antikhippe, but I had to add</p>
  <blockquote>
  <p>:host ::ng-deep {
  #myTable {<br />
  .p-datatable-thead{
  background: red;<br />
  }
  <strong>.p-datatable .p-datatable-thead &gt; tr &gt; th {
  background: inherit;
  }</strong>
  } }</p>
  </blockquote>