Answer the question
In order to leave comments, you need to log in
How to hide and show two components?
I have a component that is being reused:
<app-add-object-layer-component *ngIf="showAddForm1()" [props]="null" [title]="'Добавление 1'"[type]="'addToB'">
<app-add-object-layer-component *ngIf="showAddForm2()" [props]="null" [title]="'Добавление 1'"[type]="'addToL'">
showAddForm1()
showAddForm2()
public onSelectButton(button: Button) {
if (button instanceof ButtonAddToLayer) {
this.addRegistryLayerService.add[addToB] = true;
this.addRegistryLayerService.add[addToL] = false
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question