p-triStateCheckbox two-way data binding doesn't work

UI Components for Angular
Post Reply
orel
Posts: 1
Joined: 29 Oct 2019, 17:40

29 Oct 2019, 17:54

Hi

I use the triStateCheckbox PrimeNG's component
It's ok but the two-way data binding with [(ngModel)] doesn't work. When the value change on the controller, it's not passed on the view.
In fact we just have a simple way data binding (view to controller).

Does anybody have a solution ?

Thanks and sorry for my bad english

yigitfindikli
Posts: 362
Joined: 08 Aug 2018, 14:09

01 Nov 2019, 10:07

orel wrote:
29 Oct 2019, 17:54
Hi

I use the triStateCheckbox PrimeNG's component
It's ok but the two-way data binding with [(ngModel)] doesn't work. When the value change on the controller, it's not passed on the view.
In fact we just have a simple way data binding (view to controller).

Does anybody have a solution ?

Thanks and sorry for my bad english
Hi,
Can you provide stackblitz sample with https://stackblitz.com/github/primeface ... e-template . Actually it seems to working in live demo https://www.primefaces.org/primeng/#/tristatecheckbox .

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests