All files / src/app/common/badge error-badge.component.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171x                       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 = '';
}