Page 1 of 1

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

Posted: 29 Oct 2019, 17:54
by orel
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

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

Posted: 01 Nov 2019, 10:07
by yigitfindikli
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 .