원클릭으로
angular-dialog
Generates an Angular dialog component extending BaseDialogComponent
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generates an Angular dialog component extending BaseDialogComponent
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | angular-dialog |
| description | Generates an Angular dialog component extending BaseDialogComponent |
This skill helps you generate Angular dialog components that integrate with the project's dialog system by extending BaseDialogComponent.
When creating a new dialog, use this template:
{{name}}-dialog.ts)import { Component } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { BaseDialogComponent } from "../../../shared/components/base-dialog/base-dialog";
@Component({
selector: "app-{{name}}-dialog",
standalone: true,
imports: [CommonModule, FormsModule],
templateUrl: "./{{name}}-dialog.html",
styleUrls: ["../../../shared/components/base-dialog/base-dialog.css"], // Reuse base styles
})
export class {{Name}}DialogComponent extends BaseDialogComponent<{{ReturnType}}> {
title = "{{Dialog Title}}";
// Define model properties here
inputValue: string = "";
protected validate(): boolean {
// Return true if valid, false otherwise
return this.inputValue.length > 0;
}
protected getValue(): {{ReturnType}} {
// Return the value to be passed back to the caller
return this.inputValue;
}
}
{{name}}-dialog.html)<div class="dialog-overlay" *ngIf="visible()" (click)="onOverlayClick($event)">
<div class="dialog-content">
<div class="dialog-header">
<h2>{{ title }}</h2>
<button class="close-btn" (click)="cancel()">×</button>
</div>
<div class="dialog-body">
<!-- Content goes here -->
<div class="form-group">
<label>Input Label</label>
<input type="text" [(ngModel)]="inputValue" (keydown.enter)="submit()">
</div>
</div>
<div class="dialog-footer">
<button class="btn-secondary" (click)="cancel()">Cancel</button>
<button class="btn-primary" (click)="submit()">Confirm</button>
</div>
</div>
</div>
BaseDialogComponent<T>.validate() and getValue().visible() signal for visibility.base-dialog.css for consistent styling.(click)="onOverlayClick($event)" on the overlay.Generates Angular animations for smooth UI transitions and interactions
Generates Angular components with best practices and patterns
Generates Angular directives for DOM manipulation and behavior enhancement
Generates Angular error boundary components for graceful error handling
Generates an Angular feature component (Standalone, OnPush)
Generates Angular reactive forms with validation, error handling, and state management