primeng 复选框 ngmodel 未知 属性

primeng checkbox ngmodel is not known property

我正在使用 p-checkbox pf prime ng 4.1 rc2 版本

我收到以下错误

Can't bind to 'ngModel' since it isn't a known property of 'p-checkbox'.

我已经在 app.module.ts 中添加了公共模块,表单模块,但仍然无法正常工作

ngModel is part of FormsModule, that is why you will need to import FormsModule from @angular/forms and add it inside imports metadata option of NgModule. After doing this, you should be able to use ngModel directive in the templates that belong to the module where FormsModule was imported.

mymodule.module.ts

import { CommonModule } from '@angular/common';
import { FormsModule }    from '@angular/forms';

@NgModule({
    imports: [CommonModule, FormsModule,...