I’m trying to style ion-checkbox dynamically, color based on variable selected, from colors from app/theme/app.variables.scss.
For button, it’s easy:
<button [class.button-customcolor]="variable" [class.button-defaultcolor]="!variable" (click)=whatever()>click</button>
if I wouldn’t use variable, it would look like:
<ion-checkbox customcolor checked="false">
I’m trying everything, but things like:
doesn’t work, and I belive, it’s because rendered makes another div with that small checkbox inside .
Any ideas how to solve it? Thanks a lot!