Skip to content

Styling the host element is a crucial ability. Understanding that can completely change the way you develop reusable components, making their code clear and easier to maintain. This article will concentrate on techniques that use CSS styles and reduce Typescript logic.

Notifications You must be signed in to change notification settings

MaciejWWojcik/styling-host-elements-in-angular

Repository files navigation

Styling Host Elements In Angular

This project includes example code used for this article https://indepth.dev/posts/1469/techniques-to-style-component-host-element-in-angular

Techniques to style component host element

Styling the host element is a crucial ability. Understanding that can completely change the way you develop reusable components, making their code clear and easier to maintain. This article will concentrate on techniques that use CSS styles and reduce Typescript logic.

Techniques used

  • HostBinding decorator
  • :host pseudo-class selector
  • :host-context pseudo-class selector

Contact

feel free to contact me:

About

Styling the host element is a crucial ability. Understanding that can completely change the way you develop reusable components, making their code clear and easier to maintain. This article will concentrate on techniques that use CSS styles and reduce Typescript logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published