We're using Angular together with Bootstrap. We created a button group like
<div class="input-group-append">
<div class="btn-group" role="group">
<button class="btn btn-sm btn-outline-secondary"
[(ngModel)]="currentDisplayedList"
(ngModelChange)="changeFilter()"
btnRadio="subscribed" >subscribed</button>
<button class="btn btn-sm btn-outline-secondary"
[(ngModel)]="currentDisplayedList"
(ngModelChange)="changeFilter()"
btnRadio="available">available</button>
<button *ngIf="getPerm()?.canDeleteRss()"
class="btn btn-sm btn-outline-secondary"
[(ngModel)]="currentDisplayedList"
(ngModelChange)="changeFilter()"
btnRadio="deleted">deleted</button>
</div>
</div>
After some different upgrades in Angular the major problem is the init of the component. At the init the ngModelChangeis fired three times in a row - for each button separately. Which triggers the function changeFilter() and performs all the actions (retrieving data from DB) multiple times.
Is there a 'simple' way to prevent this and call it only once?

changeFilter()code into a subject and put a debounceTime 500ms on it.