I am very new in Angular 2\\4 and I am trying to follow this quick video tutorial to add PrimeNG components to my Angular project:
http
Add FormsModule
in your AppModule
:
// ...
import { FormsModule } from '@angular/forms';
// ...
@NgModule({
// ...
imports: [
BrowserModule,
FormsModule,
CalendarModule
],
// ...
})
export class AppModule { }
This will not solve your problem, but I had the same error when I try to use formControlName attribute :
<p-calendar [(ngModel)]="value" formControlName="debutaffichage"></p-calendar>