我已经在 Angular 5 项目上安装了 primeng。我正在使用 p-autoComplete 组件,但现在出现此错误。我应该如何修复这个错误?
这是我的源代码。
<h3 class="first">Basic</h3>
<p-autoComplete [(ngModel)]="country" [suggestions]="filteredCountriesSingle" (completeMethod)="filterCountrySingle($event)" field="name" [size]="30"
placeholder="Countries" [minLength]="1"></p-autoComplete>
Run Code Online (Sandbox Code Playgroud)