I've got a html like this:
<ng-template [ngSwitchCase]="'textbox'">
    <input *ngIf="setting.type==='number'"
           [step]="setting.step"
           [formControlName]="formName"
           [id]="formName"
           [type]="setting.type"
           [placeholder]="setting.placeholder"
           [title]="setting.description"
           (ngModelChange)="onChange($event)">
</ng-template>
and on controller I've got the function onChange:
onChange(newValue: string) {
    if (newValue === undefined)
        return;
    this.form.get(this.formName).setValue(<any>parseFloat(newValue));
}
When I was debugging this call of onChange func then I noticed that is still calling and really don't know why. There I've got a intinite loop.
My angular packages:
"@angular/animations": "8.2.7",
"@angular/cli": "8.3.5",
"@angular/common": "8.2.7",
"@angular/compiler": "8.2.7",
"@angular/core": "8.2.7",
"@angular/forms": "8.2.7",
"@angular/platform-browser": "8.2.7",
"@angular/platform-browser-dynamic": "8.2.7",
"@angular/router": "8.2.7",
"@babel/polyfill": "7.6.0",
Have you got a ideas what might be wrong with my code?