Angular, Web Development, JavaScript, Typescript.
"pending") { <p>Analysis is pending</p> } @else { <p>Analysis completed with result: {{ analysisState.result }}</p> } } Having introduced the new way to create template local variables, there’s a far more elegant way to accomplish the goal: @let analysisState = analysisState(); @if