Angular 17 Material mat-autocomplete mat-input within a FormGroup

Based on the following example on the Angular Material Site for v17
https://v17.material.angular.io/components/autocomplete/overview#automatically-highlighting-the-first-option,
I am trying to setup this but leveraging an Input FormControl within a FormGroup.
However in doing so, I am finding that the FormControl valueChanges observable is not firing.

I did some testing to make sure the that if I use the FormControl within a FormGroup with wiring it up to the UI, I can see the Observable firing.

example markup that works

          <mat-form-field class="contact-full-width">
            <mat-label>country</mat-label>
            <input
              placeholder="Pick one"
              aria-label="Number"
              matInput
              formControlName="country"
              required>
           
          </mat-form-field>

example component code that works

  public registerForm = new FormGroup({
    email: new FormControl(''),
    firstName: new FormControl(''),
    lastName: new FormControl(''),
    addressLine1: new FormControl(''),
    addressLine2: new FormControl(''),
    stateProvinceTerritory: new FormControl(''),
    cityTownSuburb: new FormControl(''),
    country: new FormControl(''),
    postalCode: new FormControl(''),
  });

private _filteredCountries: Array<Country> = [];

public get filteredCountries () {
    return this._filteredCountries;
  }


this._subCountryInputChange = this.registerForm.get('country')?.valueChanges.pipe(
        startWith(''),
        filter((value) => (!value ? 0 : value.length) > 2),
        debounceTime(500),
        map((data: any)  => {
          const name = typeof data === 'string' ? data : data?.name;
          return data ? this.filterList<Country>(data, this._masterCountries) : this._masterCountries.slice();
        })
      ).subscribe({
         next:(data: Array<Country>) => { this._filteredCountries = data; },
         error:(e: any) => { console.log(e) }, 
         complete:() => { console.log('ok') }
      })

If I place a break point on the line with next I can see the assignment to this._filteredCountries occurring.

However, if I change the markup to wireup the filteredCountries to the auto-complete, nothing happens.

example markup

<mat-form-field class="contact-full-width">
            <mat-label>country</mat-label>
            <input
              placeholder="Pick one"
              aria-label="Number"
              matInput
              formControlName="country"
              [matAutocomplete]="auto"
              required>
            <mat-autocomplete name="country" #auto="matAutocomplete" [displayWith]="displayFn" requireSelection>
             <!-- @for (option of filteredOptions | async; track option) {-->
              @for (option of filteredCountries; track option) {
                <mat-option [value]="option">{{option.name}}</mat-option>
              }
            </mat-autocomplete>
          </mat-form-field>

I have also tried the observable / async approach wiring the observable directly to the control in markup but that does not work either.

Edit:
After more experimentation, I setup the FormControl outside of the FormGroup to see if this makes a difference. It did not.

I am not sure what I am missing but any assistance would be appreciated

After a lot of digging into this code and experimenting with different changes, it appears it is developer error. I had the .TS snippets in the constructor. It looks like these observables need to be in ngInit(). This was an oversight.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật