How do you do this in Angular, using the new @if syntax
<ng-container *ngIf="contractSignal().object1?.object2 as templateVariable">
{{ templateVariable }}
</ng-container>
>Solution :
try this:
@if (contractSignal().object1?.object2; as templateVariable) {
{{ templateVariable }}
}
BTW, you can play with new control flow on the new Angular site.