diff --git a/adev/src/content/examples/attribute-directives/src/app/app.component.avoid.html b/adev/src/content/examples/attribute-directives/src/app/app.component.avoid.html deleted file mode 100644 index 8abadb1242e..00000000000 --- a/adev/src/content/examples/attribute-directives/src/app/app.component.avoid.html +++ /dev/null @@ -1,3 +0,0 @@ - -
This is invalid
- diff --git a/adev/src/content/examples/attribute-directives/src/app/highlight.directive.0.ts b/adev/src/content/examples/attribute-directives/src/app/highlight.directive.0.ts deleted file mode 100644 index e87c77b34e5..00000000000 --- a/adev/src/content/examples/attribute-directives/src/app/highlight.directive.0.ts +++ /dev/null @@ -1,7 +0,0 @@ -// #docregion -import {Directive} from '@angular/core'; - -@Directive({ - selector: '[appHighlight]', -}) -export class HighlightDirective {} diff --git a/adev/src/content/guide/directives/attribute-directives.md b/adev/src/content/guide/directives/attribute-directives.md index f5af756de71..0edbeb78b40 100644 --- a/adev/src/content/guide/directives/attribute-directives.md +++ b/adev/src/content/guide/directives/attribute-directives.md @@ -14,7 +14,14 @@ This section walks you through creating a highlight directive that sets the back The CLI creates `src/app/highlight.directive.ts`, a corresponding test file `src/app/highlight.directive.spec.ts`. -This is invalid
+``` ## Applying an attribute directive