src/number-card/card.component.ts
Function update
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update(): void {
this.zone.run(() => {
const hasValue = this.data && typeof this.data.value !== 'undefined';
const valueFormatting = this.valueFormatting || (card => card.value.toLocaleString());
const labelFormatting = this.labelFormatting || (card => escapeLabel(trimLabel(card.label, 55)));