#Visual update `awc-select` with Signal.

2 messages · Page 1 of 1 (latest)

autumn acorn
#

for more information, this is a generic component: used twice in a parent component, once for the current period and once for the comparison period. I use a selectedPeriodType signal to synchronize the selectors visually, but the visual selector doesn't update properly when the signal value changes.

#

<!-- Selector for current period -->
<app-filter-analysis
(filterChanged)="onOffsetChange($event.offset, false)"
(periodTypeChanged)="onPeriodTypeChange($event)"
[initialPeriodType]="selectedPeriodType()"
[initialOffset]="selectedOffset()">
</app-filter-analysis>

<!-- Selector for comparison period -->
<app-filter-analysis
(filterChanged)="onOffsetChange($event.offset, true)"
(periodTypeChanged)="onPeriodTypeChange($event)"
[initialPeriodType]="selectedPeriodType()"
[initialOffset]="compareOffset()">
</app-filter-analysis>