diff --git a/aio/content/examples/attribute-directives/src/app/app.component.1.html b/aio/content/examples/attribute-directives/src/app/app.component.1.html index 4422c83ead..f05c4a1bd3 100644 --- a/aio/content/examples/attribute-directives/src/app/app.component.1.html +++ b/aio/content/examples/attribute-directives/src/app/app.component.1.html @@ -2,7 +2,7 @@

My First Attribute Directive

Highlight me!

- +

Highlighted in yellow

@@ -11,4 +11,4 @@

Highlighted with parent component's color

- + \ No newline at end of file diff --git a/aio/content/examples/attribute-directives/src/app/app.component.avoid.html b/aio/content/examples/attribute-directives/src/app/app.component.avoid.html new file mode 100644 index 0000000000..464e8f30e5 --- /dev/null +++ b/aio/content/examples/attribute-directives/src/app/app.component.avoid.html @@ -0,0 +1,3 @@ + +

This is invalid

+ \ No newline at end of file diff --git a/aio/content/guide/attribute-directives.md b/aio/content/guide/attribute-directives.md index 270985d5b0..08fe8e3c22 100644 --- a/aio/content/guide/attribute-directives.md +++ b/aio/content/guide/attribute-directives.md @@ -41,6 +41,10 @@ when the user hovers over that element. You can apply it like this: {@a write-directive} +Please note that directives _do not_ support namespaces. + + + ### Write the directive code Create the directive class file in a terminal window with the CLI command [`ng generate directive`](cli/generate).