Using CSS Host-Context To Theme Components In Angular 6.1.3

added by JavaScript Kicks
8/18/2018 10:00:29 AM

515 Views

Ben Nadel starts to explore the concept of theming in an Angular application, starting with :host-context() bindings which are a way to apply dynamic CSS styles based on conditions that exist outside of the current component. In this instance, he's using a CSS theme class on the root component in order to provide the "condition" for the :host-context() selector.


0 comments