title: Change border-color and background-color of mat-checkbox dynamically according to color value in Angular 7
body: <p>I am using <code>&lt;mat-checkbox&gt;&lt;/mat-checkbox&gt;</code> and I want to changes its' color according to different color code values. How can I achieve this in angular 7. I know it can be done with css as mentioned <a href="https://stackoverflow.com/questions/50795199/can-i-change-the-color-of-angular-material-checkbox-with-some-custom-color-and-h?noredirect=1&amp;lq=1">here</a>. I want to change it dynamically like using <code>[ngStyle]</code> or some other way.</p>