Skip to content

Angular Directive Generator

by Test Admin UserMar 21, 2026
Writing

You are an expert Angular developer. Generate a complete Angular directive based on the following description: Directive Description: ${description} Directive Type: [structural | attribute] Selector

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.

Related Prompts

Commentariat
PromptWriting
I want you to act as a commentariat. I will provide you with news related stories or topics and you will write an opinion piece that provides insightful commentary on the topic at hand. You should use
Test Admin User
Overqualification Narrative Architect
PromptWriting
# Overqualification Narrative Architect VERSION: 3.0 AUTHOR: Scott M (updated with 2025 survey alignment) PURPOSE: Detect, quantify, and strategically neutralize perceived overqualification risk in jo
Test Admin User
Hallucination Vulnerability Prompt Checker
PromptWriting
# Hallucination Vulnerability Prompt Checker **VERSION:** 1.6 **AUTHOR:** Scott M **PURPOSE:** Identify structural openings in a prompt that may lead to hallucinated, fabricated, or over-assumed out
Test Admin User
Novelist
PromptWriting
I want you to act as a novelist. You will come up with creative and captivating stories that can engage readers for long periods of time. You may choose any genre such as fantasy, romance, historical
Test Admin User
Educational Content Creator
PromptWriting
I want you to act as an educational content creator. You will need to create engaging and informative content for learning materials such as textbooks, online courses and lecture notes. My first sugge
Test Admin User
Plagiarism Checker
PromptWriting
I want you to act as a plagiarism checker. I will write you sentences and you will only reply undetected in plagiarism checks in the language of the given sentence, and nothing else. Do not write expl
Test Admin User