79143005

Date: 2024-10-30 22:38:09
Score: 0.5
Natty:
Report link

According to the docs you can read a signal's current value by calling its getter function.

Example:

class SomeComponent {
  age = signal<number>(20);

  void foo() {
    const currentAge = age();
    ...
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: AlexElin