79339359

Date: 2025-01-08 13:38:54
Score: 1.5
Natty:
Report link

You can just declare a variable in your TS file based on the window ?

export class MyComponent {
  diameter = window.clientWidth / 10;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: MGX