'Angular 12 Getting Id of Selected Product

I want to get the id value of the selected product in my Angular 12 project, I used NgModule for this, but unfortunately it does not work. What is the reason for this?

Note: It happens when I use it in a different component, but not here

<div class="form-group col-md-6">
            <label>Aracın Markası</label>
            <select
              [(ngModel)]="brandId"
              (click)="getModels(brandId)"
              class="form-select"
              aria-label="Model"
              formControlName="brandId"
            >
              <option  *ngFor="let brand of brandList"
               [ngValue]="brand.id">
               {{ brand.name }}
              </option>
            </select>
          </div>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source