I have installed primeng on angular 5 project. I am using p-autoComplete component but this error occurs now. How should I do to fix this error?
This is my source code.
<h3 class="first">Basic</h3>
<p-autoComplete [(ngModel)]="country" [suggestions]="filteredCountriesSingle" (completeMethod)="filterCountrySingle($event)" field="name" [size]="30"
placeholder="Countries" [minLength]="1"></p-autoComplete>
Usually it's a problem of import. Check your app.module.ts
file.
It should contain these lines :
import { AppComponent } from './app.component';
import {AutoCompleteModule} from 'primeng/autocomplete';
// other imports
@NgModule({
imports: [
AutoCompleteModule,
// ...
],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With