We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7c9bf commit ad07730Copy full SHA for ad07730
examples-standalone/personal-finance-app/src/app/components/analytics/analytics.component.ts
@@ -90,8 +90,8 @@ export class AnalyticsComponent {
90
};
91
92
@HostListener('window:resize', ['$event'])
93
- onResize(event: any): void {
94
- this.updateLegendPosition(event.target.innerWidth);
+ onResize(event: UIEvent): void {
+ this.updateLegendPosition((event.target as Window).innerWidth);
95
}
96
97
private updateLegendPosition(width: number): void {
0 commit comments