Skip to content

Commit

Permalink
chore: update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 20, 2025
1 parent fdf8fa2 commit 8f43f70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {TuiLineClamp} from '@taiga-ui/kit';
})
export default class Example {
private readonly win = inject(WA_WINDOW);
private readonly cd = inject(ChangeDetectorRef);
private readonly cdr = inject(ChangeDetectorRef);
protected lineHeight = NaN;
protected lineLimit = NaN;

Expand All @@ -30,6 +30,6 @@ export default class Example {
protected onResize(element: HTMLDivElement): void {
this.lineHeight = this.getDynamicLineHeight(element);
this.lineLimit = this.getDynamicLineLimit(element);
this.cd.detectChanges();
this.cdr.detectChanges();
}
}

0 comments on commit 8f43f70

Please sign in to comment.