Good day to all! There is a need to set the style of the class in the component PrimeNG. At first glance, a simple task, but stylization of a component only in the documentation is obvious through specifying inline style. Component rewrite I see no reason for this. Part View from the Angular component
<style> .data { font-weight: bold; } </style> <input type="text" pInputText [(ngModel)]="mdl_" (keypress)="onKey($event)" [style]="'font-weight':'bold'"/> So, as cited the code, I do not want. It is necessary to use the data class. How to specify it in style? Thanks for the help.