From 980bb52d36ef75760d56412ff14defe0ae7181f2 Mon Sep 17 00:00:00 2001 From: Sergej Grilborzer Date: Wed, 6 Feb 2019 09:17:13 +0100 Subject: [PATCH] docs: warn that directives don't support namespaces (#25855) PR Close #25855 --- .../attribute-directives/src/app/app.component.1.html | 4 ++-- .../attribute-directives/src/app/app.component.avoid.html | 3 +++ aio/content/guide/attribute-directives.md | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 aio/content/examples/attribute-directives/src/app/app.component.avoid.html 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).