ЕУ
Size: a a a
ФІ
ЕУ
VV
КК
RY
КК
RY
<ng-container #container></>
<ng-template #divTemplate><div/></>
@ViewRef('container', {static: true, read: ViewContainerRef}) container: ViewContainerRef;
@ViewRef('divTemplate', {static: true}) template: TemplateRef<HtmlDivElement>;
onClick() {
this.container.createEmbView(this.template)
}RY
КК
RY
onClick() {
this.items = [...this.items, newItem] // или убираете, смотря что надо
}КК
RY
@Input() item
@Output() itemChange = new EventEmitter()
В таком случае он ангулар позволяет сократить запись<app-card [item]="item" (itemChange)="item = $event"></> <app-card [(item)]="item"></> КК
AB
AE
AE
AB
ЕУ
s