ipIterPrompt

Angular Directive Generator

Turn any AI chat into an angular directive generator with this community persona prompt.

satishbirhade16@gmail.com · awesome-chatgpt-promptsUpdated 2026-06-10

Angular Directive Generator is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The prompt

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.

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

Business Engineer Dashboard Creator

Turn any AI chat into a business engineer dashboard creator with this community persona prompt.

4,441 copiesOpen ↗

Create a logic where a 3D geometric mesh

Turn any AI chat into a create a logic where a 3d geometric mesh with this community persona prompt.

3,788 copiesOpen ↗

Step 4b: Story Development

Turn any AI chat into a step 4b: story development with this community persona prompt.

1,282 copiesOpen ↗

DevOps Automator Agent Role

Turn any AI chat into a devops automator agent role with this community persona prompt.

5,340 copiesOpen ↗

Used in these guides