| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1x 1x 1x 5x 1x | import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
@Component({
selector: 'error-badge',
template: `
<span class="badge pull-right" *ngIf="item?.metric != null" [ngClass]="item?.badgeColor || item?.color" >
{{item?.metric}} {{units}}
</span>
`,
styleUrls: ['./badge.color.scheme.css', './error-badge.component.css'],
})
export class ErrorBadgeComponent {
@Input() item: any;
@Input() units = '';
}
|