mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 17:00:13 +01:00
18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'ngx-chart-panel-summary',
|
|
styleUrls: ['./chart-panel-summary.component.scss'],
|
|
template: `
|
|
<div class="summary-container">
|
|
<div *ngFor="let item of summary">
|
|
<div>{{ item.title }}</div>
|
|
<div class="h6">{{ item.value }}</div>
|
|
</div>
|
|
</div>
|
|
`,
|
|
})
|
|
export class ChartPanelSummaryComponent {
|
|
@Input() summary: {title: string; value: number}[];
|
|
}
|
|
|