·angular-directives
*

angular-directives

在 Angular v20+ 中创建自定义指令以进行 DOM 操作和行为扩展。用于修改元素行为/外观的属性指令、门户/覆盖的结构指令以及组合的主机指令。在创建可重用 DOM 行为、扩展元素功能或跨组件组合行为时触发。注意 - 使用原生 @if/@for/@switch 进行控制流,而不是自定义结构指令。

17安装·0热度·@zard-ui

安装

$npx skills add https://github.com/zard-ui/zardui --skill angular-directives

如何安装 angular-directives

通过命令行快速安装 angular-directives AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/zard-ui/zardui --skill angular-directives
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:zard-ui/zardui。

SKILL.md

查看原文

Create custom directives for reusable DOM manipulation and behavior in Angular v20+.

Use structural directives for DOM manipulation beyond control flow (portals, overlays, dynamic insertion points). For conditionals and loops, use native @if, @for, @switch.

在 Angular v20+ 中创建自定义指令以进行 DOM 操作和行为扩展。用于修改元素行为/外观的属性指令、门户/覆盖的结构指令以及组合的主机指令。在创建可重用 DOM 行为、扩展元素功能或跨组件组合行为时触发。注意 - 使用原生 @if/@for/@switch 进行控制流,而不是自定义结构指令。 来源:zard-ui/zardui。

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zard-ui/zardui --skill angular-directives 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/zard-ui/zardui --skill angular-directives
分类
*创意媒体
认证
收录时间
2026-02-22
更新时间
2026-03-10

Browse more skills from zard-ui/zardui

快速解答

什么是 angular-directives?

在 Angular v20+ 中创建自定义指令以进行 DOM 操作和行为扩展。用于修改元素行为/外观的属性指令、门户/覆盖的结构指令以及组合的主机指令。在创建可重用 DOM 行为、扩展元素功能或跨组件组合行为时触发。注意 - 使用原生 @if/@for/@switch 进行控制流,而不是自定义结构指令。 来源:zard-ui/zardui。

如何安装 angular-directives?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zard-ui/zardui --skill angular-directives 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/zard-ui/zardui