Im trying to assign a style that is coming from an object[], if I hardcode the style like [style]="{'text-align':'right'}" then works but if I read it from the object then throws an error, any advice?
<p-column
*ngFor="let field of item.Fields"
[field]="field.Name"
[header]="field.Header"
[style]="field.Style"
>
</p-column>
Error:
ERROR Error: Cannot find a differ supporting object '{'text-align':'right'}'