ДБ
Ну и задачу по таске на работе надо как-то закрыть, вряд-ли там дождутся принятия и внедрения PR ))
Size: a a a
ДБ
ДБ
J
ДБ
SV
SV
ДБ
ДБ
SV
SV
ДБ
SV
ДБ
E
П
AS
SV
<div *ngFor="let { key as country, value as poi } of countryPoiMap | keyvalue">
<div>{{ country.name }}</div>
<div>{{ poi.name }}</div>
</div>
<div *ngIf="'a' in item">
I'm expecting item is no longer of type A | B, but only A
{{item.a}}
</div>
a?.b в Angular означает null == a ? null : a.b по спеке же a == null ? undefined : a.b , ну и различные изменения в этом духе.ngxs, rx-angular/templates, ngxf
<div *ngLet="userStream|async as user">...</div>
html
<my-component [prop1]="prop1" {...otherInputs} ></my-component>
<select [compareWith]="(a, b) => a.id == b.id" [(ngModel)]="selectedCountries"> ...
<div *ngIf="thingAndOther$ | async as {thing, other}">
rx-angular/templates Так же в комментах указали на одну либу, пример:
<button (*click)="clicks$; $event = 'custom payload'">Click Me</button>
@Component({...})
export class MyComponent implements OnInit {
@ObservableEvent()
clicks$: Observable<any>;
ngOnInit() {
// we can either manually subscribe or use the async pipe
this.clicks$.subscribe(console.log);
}
}
AI
header.VS
AI