Put in order · Angular course · Module 14: Advanced Patterns
Structure of an attribute directive
Order the lines of an attribute directive definition (top to bottom):
Items to put in order
- export class HighlightDirective {
- }
- private el = inject(ElementRef);
- @Directive({ selector: '[appHighlight]' })
You can check the correct answer by solving this task in the CodeWorlds game.