Ребята, помогите с советом.
У меня есть такой компонент:
<main *ngIf="grouped; else sidebar">
<mat-expansion-panel *ngFor="let group of enabledGroups"
expanded="true"
class="c-pointer">
<mat-expansion-panel-header> {{ group }} </mat-expansion-panel-header>
<app-service-card *ngFor="let service of groupServices(group)"
[service]="service"
[status]="service.status"
[isExpandable]="true">
<app-settings-form *ngIf="service.status === serviceStatus.ACTIVATED"
[options]="service.options"
[serviceId]="
service.id"></app-settings-form>
</app-service-card>
</mat-expansion-panel>
</main>
<ng-template #sidebar>
<main>
<app-service-card *ngFor="let service of services"
[service]="service"
[status]="service.status"></app-service-card>
</main>
</ng-template>
Проблема в том, что даже когда приходит group - false, всё равно отрабатывает метод groupServices(group)