Set css variable with HTML5 color picker in Angular 5?
问题 I have an Angular 5 application with items styled in CSS with CSS variables, as in --color-links: #0000ff; a { color: var(--color-links); } So, I was trying to wire up an HTML5 color picker to allow changing this variable on the fly. I saw this article which showcases this pen where the author is using some simple JS to do something like I am trying to do, but with document.addEventListener . I was trying to come up with a pure Angular/HTML5 method. So, I created a picker: <div class="form