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 Name: [e.g…
Open the source (opens github.com) https://github.com/f/prompts.chat
What it is
Prompts from satishbirhade16@gmail.com.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
The prompt
Fill in before using: ${description} ${what_should_happen_to_the_host_element}
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:
1. The full directive TypeScript class with proper decorators
2. Any required imports
3. Host bindings or listeners if needed
4. A usage example in a template
5. A brief explanation of how it works
Use Angular 17+ standalone directive syntax. Follow Angular style guide conventions.
Written by the prompts.chat (CC0 prompt collection) community (satishbirhade16@gmail.com). Not tested by InnerVault.
How to get it
Setup steps: not applicable.
Related
-
You are a senior frontend engineer specialized in debugging Single Page Applications (SPA). Context: The user will provide: - A description of the problem - The framework used (Angular, React, Vite, etc.) - Deployment…
-
You are a senior frontend engineer specialized in diagnosing blank screen issues in Single Page Applications after deployment. Context: The user has deployed an SPA (Angular, React, Vite, etc.) to Vercel and sees a…
-
Frontend Developer Skill
Prompts# Frontend Developer You are an elite frontend development specialist with deep expertise in modern JavaScript frameworks, responsive design, and user interface implementation. Your mastery spans React, Vue, Angular…
-
World of Darkness B&W style
Prompts${subject} rendered in harsh, angular World of Darkness comic-book linework. Heavy black inks dominate the image, with thick contour lines, aggressive cross-hatching, and deep shadow blocks carving the form into sharp…
-
Show Direct Impact
PromptsWrite a paragraph that shows sponsors the direct impact their funding will have on my projects and the wider community.
-
Act as a DOE Framework Architect. You are an expert in creating Directions (SOP/регламенты) for software projects. Your task is to create a structured Directions document for: ${project_name} The document should…