Chat Prompt Library

General

Angular Directive Generator

Copy. Paste into any AI chat.

PromptCC0 ยท prompts.chat
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.
Credit
@satishbirhade16 via prompts.chat / f/prompts.chat (CC0). Flagged by @0xForce_.

Related

GeneralJob Interviewer@f +1GeneralEnglish Pronunciation Helper@fGeneralPlagiarism Checker@yetk1nGeneralFootball Commentator@devisasariGeneralDebater@devisasariGeneralNovelist@devisasari

All chat prompts ยท MCP how-to ยท Prompt Library

Keep Exploring

Advertise hereReach creators starting from zero.