hi, how can i print key and value of object inside template?
The template is 'kendo chart series item tooltip'
My html
<kendo-chart-series-item-tooltip> <ng-template let-value="value" let-category="category" let-series="series" let-dataItem="dataItem"> <div *ngFor="let item of dataItem.subObject| keyvalue"> {{item | json}}<br/> Key:{{item.key}} and Value:{{item.value}} <br/><br/> </div> </ng-template></kendo-chart-series-item-tooltip>
My json:
[{ "id": "1Period", "subObject": [{"Alex":"10"},{"Mathew":"5"}],},{
"id": "2Period",
"subObject": [{"Alex":"2"},{"Mathew":"50"}],
}
This code doesn't work and it return this error:
Uncaught Error: Template parse errors:
The pipe 'keyvalue' could not be found ("ue" let-catego
