---
title: "Discussion on \"Component Styling vs. Attribute Directives vs. Global Styling, which to use?\" | Hashnode"
description: "Discussion on \"Component Styling vs. Attribute Directives vs. Global Styling, which to use?\". I was following a course on Angular 12 and got to a section where Angular Directives were taught, more specifically: attribute directives. The course gave a nice example of creating an [appHighlight] attribute directive to use for highlighting the st..."
url: "https://hashnode.com/posts/component-styling-vs-attribute-directives-vs-global-styling-which-to-use/61446e83dbe60379639b1e50"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Component Styling vs. Attribute Directives vs. Global Styling, which to use?](https://sembo199.hashnode.dev/component-styling-vs-attribute-directives-vs-global-styling-which-to-use?utm_source=hashnode&utm_medium=feed)

I was following a course on Angular 12 and got to a section where Angular Directives were taught, more specifically: attribute directives. The course gave a nice example of creating an \[appHighlight\] attribute directive to use for highlighting the st...

Sep 17, 2021 · 5 min read · sembo199.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#angular](https://hashnode.com/tag/angular)
-   [#directive](https://hashnode.com/tag/directive)
-   [#components](https://hashnode.com/tag/components)
-   [#styling](https://hashnode.com/tag/styling)

## Written by

[Sem](https://hashnode.com/@sembo199)

@sembo199 · The Netherlands

  
[View profile](https://hashnode.com/@sembo199)

Full-stack Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Dev By RayRay](https://hashnode.com/@devbyrayray)

[Sep 17, 2021](https://hashnode.com/posts/component-styling-vs-attribute-directives-vs-global-styling-which-to-use/61446e83dbe60379639b1e50/comment/61447c82dbe60379639b2019)

Great post [Sem Ekkelboom](https://hashnode.com/@sembo199) 👍
