Tom Smykowski beta

Blog

๐ŸŽจ Should Angular Directives Have Styles?

๐ŸŽจ Should Angular Directives Have Styles?

Hi, my name is Tom Smykowski, I'm a staff full-stack engineer. I build and scale SaaS platforms to millions of users, working end-to-end from system architecture to frontend to mobile. On this blog I share what I learn about software engineering, Angular development, and solutions to common coding challenges.

What This Article Covers

Explore a longstanding debate in the Angular community regarding the styling of directives. Delve into the history and current arguments surrounding the demand for style and styleUrl support in Angular directives, and examine the underlying challenges and potential solutions developers have discussed over the years.

Questions This Article Answers

  • Why is there a debate about adding styles to Angular directives?
  • What are the limitations of using directives without style support in Angular?
  • How do Angular components currently handle styling versus directives?
  • What have been the main arguments for and against adding style support to directives?
  • Could incorporating styles into directives change the way Angular applications are built?

Length and Time

A thoughtful exploration with insights from ongoing industry discussions. Approximately 7 minutes to read.

Want to unlock the full story? Log in

โ† All posts