@nharrer wrote:
Let’s say I have a boolean variable
state
in my component, which can be true, false or null. The docs say that ion-checkbox has an indeterminate property. So I tried to use it like this:<ion-checkbox [indeterminate]="state === null" [(ngModel)]="state"></ion-checkbox>
However, I get following error:
Error: Template parse errors: Can't bind to 'indeterminate' since it isn't a known property of 'ion-checkbox'.
How can I set
indeterminate
to true, if state is null?Thanks.
Posts: 1
Participants: 1