mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
0d26130a4c
Several adev example and tutorial files read a signal input as a bare reference (this.foo) instead of invoking it (this.foo()). Because an InputSignal is a function object, the bare reference is always truthy and never yields the underlying value, so the surrounding guard or binding silently did the wrong thing: - animations open-close(.1/.3): the `!this.logging` guard in onAnimationEvent was always false, so the early return never fired. - form-validation forbidden-name.directive: the `this.forbiddenName` ternary condition was always truthy, so validation ran even when no forbidden name was configured. - first-app steps 12 and 14 housing-location: `housingLocation.photo` read `.photo` off the signal function (undefined), leaving the listing image src empty. Invoke the signals so the examples reflect correct signal-input usage.