Angular Best Practices Primeng

alfredoperez/angular-best-practices/skills/angular-best-practices-primeng

作者 alfredopereza499a4786182097a500dd2fb6ddc2489caee3854MIT37 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 個月前更新

PrimeNG best practices for Angular. Covers tree-shaking imports, lazy-loaded tables, and the Aura/Lara theme system with design tokens. Activates when working with primeng components. Do not use for Angular Material, Spartan UI, or other component libraries. Install alongside angular-best-practices for full coverage.

已封存僅含說明Software Development
AI 產生的概覽

Angular 的 PrimeNG 最佳實務:可搖樹最佳化的匯入、延遲載入表格,以及使用設計權杖的 Aura/Lara 主題。

功能
提供在 Angular 專案中使用 PrimeNG 元件的規則指引。內容涵蓋以獨立元件匯入來縮小打包體積、設定支援伺服器端分頁或虛擬捲動的表格,以及透過 providePrimeNG 設計權杖而非 CSS 覆寫來設定主題。它是僅含說明的附加技能,需與核心 Angular 最佳實務技能一併安裝。
適用情境
適用於匯入 PrimeNG 獨立元件、設定具伺服器端分頁或虛擬捲動的 PrimeNG 表格,或使用設計權杖設定 Aura/Lara 主題的情境。不適用於 Angular Material、Spartan UI 或其他元件庫。
執行需求
不隨附指令碼或工具,僅為說明文件。假定專案為使用 PrimeNG 的 Angular 專案,並設計為與核心 angular-best-practices 技能一併安裝。

Angular PrimeNG Best Practices

PrimeNG rules for component imports, table performance, and theming. Use with the core angular-best-practices skill for comprehensive Angular coverage.

Links

When to Apply

  • Importing PrimeNG standalone components
  • Configuring tables with server-side pagination or virtual scrolling
  • Setting up Aura/Lara themes with design tokens

Rules

RuleImpactDescription
Tree-Shake PrimeNG ImportsMEDIUMStandalone component imports for smaller bundles
Use PrimeNG Table with Lazy LoadingHIGHServer-side pagination for large datasets
Use PrimeNG Theme SystemMEDIUMDesign tokens via providePrimeNG instead of CSS overrides

Install

Install from skills.sh/alfredoperez/angular-best-practices:

來源與署名

來源:alfredoperez/angular-best-practices位於skills/angular-best-practices-primeng提交a499a47

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架