I'm trying to use the the new angular syntax for the old *ngIf. In my template I would like to combine the following to @if statements
@if(foo.bar$ | async;as bar) {
<h2>{{bar}}</h2>
}
and
@if((foo.bar$ | async) !== 'yolo') {
}
Those work. Ideally I would like to combine them, something like
@if(foo.bar$ | async;as bar !== 'yolo') {
<h2>{{bar}}</h2>
}
or
@if((foo.bar$ | async;as bar) && bar !== 'yolo') {
<h2>{{bar}}</h2>
}
I can try more, but the point is, this is incorrect syntax. So my question is, is something like this possible or should I just have 2 @if statements?
(foo.bar$ | async) !== 'yolo' && (foo.bar$ | async); as bar. Its usingasynctwice, not ideal, but if this is it, this is it :) Thnx!!