0

Is it possible to assign a pseudo-class like 'hover' or 'active' to [ngStyle] ? something like: 'background-color:hover': #178102

<button type="button" [ngStyle]="{'background-color': userDetails.settings.colorButtons}">
this.userDetails.settings.colorButtons = "#179906";
Nicholas K
  • 15,148
  • 7
  • 31
  • 57
sonEtLumiere
  • 4,461
  • 3
  • 8
  • 35
  • 1
    Maybe here you can find the answer https://stackoverflow.com/questions/35280118/change-style-of-pseudo-elements-in-angular2 – lissettdm Nov 07 '20 at 23:32
  • Does this answer your question? [Change style of pseudo elements in angular2](https://stackoverflow.com/questions/35280118/change-style-of-pseudo-elements-in-angular2) – Nicholas K Nov 08 '20 at 06:38

0 Answers0