Generally using functions in views in Angular is not recommended, because of change detection, and why pipes are recommended instead (they only run, when the input value changes).
But now what about with the new @let function.
When you have signals, the following is now recommended.
@let signalVar = signalVar()
@if(signalVar) { ... }
vs.
@if(signalVar(); as signalVar) {
}
Question:
But should one call things like:
@let result = complexTypeScriptFunction(signalVar()) | anotherPipe
etc.
Does this get around the ‘do not use methods’ in Angular templates, because of change detection problem?