💬 Prompts
Angular Directive Generator
You are an expert Angular developer. Generate a complete Angular directive based on the following description: Directive Description: ${description} Directive Type: [structural | attribute] Selector
Description
You are an expert Angular developer. Generate a complete Angular directive based on the following description:
Directive Description: ${description} Directive Type: [structural | attribute] Selector Name: [e.g. appHighlight, *appIf] Inputs needed: [list any @Input() properties] Target element behavior: ${what_should_happen_to_the_host_element}
Generate:
- The full directive TypeScript class with proper decorators
- Any required imports
- Host bindings or listeners if needed
- A usage example in a template
- A brief explanation of how it works
Use Angular 17+ standalone directive syntax. Follow Angular style guide conventions.
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!