Here is the data Object within my component
sampleData=[
{
"value": "sample value with no formatter",
"formatter": null,
},
{
"value": "1234.5678",
"formatter": "number:'3.5-5'",
},
{
"value": "1.3495",
"formatter": "currency:'USD':true:'4.2-2'",
}
]
HTML Snippet
<div *ngFor="let data of sampleData">{{data.value | data.formatter}}</div>
I am in need of displaying a table which showcases each row with different formatting.
The technology I am utilizing is typescript along with Angular 4.