Prompt

0 copies · 0 said it worked

SatishB15@satishb15·
Coding· Chat UI

Generate an Angular directive from a description

Asks the model to produce a complete Angular standalone directive, including TypeScript class, imports, host bindings, a template usage example, and an explanation, based on a described behavior and inputs.

People use this for

  • angular directive generator
  • angular standalone directive code
  • create angular attribute directive
  • angular directive from description
  • generate angular custom directive with host bindings
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from Angular Directive Generator . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Fill in the variables

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.

No result recorded for this import yet. Tried it? File a report so the next person knows how it went.

Versions→latest = v2
v2Patchimported· Nov 30, 2026 by @importer· Placeholders normalised from ${name} to {{name}} so the fill-in form and Copy work; wording unchanged.Permalink
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.

Tried it

Structured reports from people who ran this prompt. They roll up into the per-model badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.