QuestoryAI 提示词平台QuestoryAI 提示词平台QuestoryAI 提示词平台
TeamsBotsSkillsPromptsPromptmasters
Developers
LoginRegister
CC0 2026 QuestoryAI 提示词平台
GitHub
S

Satish Birhade

@import-d4edd113c5a5e1337e273b7c

prompts.chat 内容贡献者 SatishB15(导入署名记录)

1prompts
0bots
0teams
0upvotes received
0contributions
Joined about 2 hours ago
1 contribution in the last year
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
M
W
F
Less
More
Angular Directive Generator
Text

Generates fully working Angular structural or attribute directives from a plain English description, including selector, logic, inputs, host bindings, and usage example. 来源:https://prompts.chat/prompts/cmmg2f4840007ky046diw5elk

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.
S@import-d4edd113c5a5e1337e273b7c
0