diff --git a/skills/angular-best-practices/SKILL.md b/skills/angular-best-practices/SKILL.md index 03262b19..aac37891 100644 --- a/skills/angular-best-practices/SKILL.md +++ b/skills/angular-best-practices/SKILL.md @@ -104,8 +104,6 @@ bootstrapApplication(AppComponent, { --- ---- - ## 2. Async Operations & Waterfalls (CRITICAL) ### Eliminate Sequential Data Fetching diff --git a/skills/angular-ui-patterns/README.md b/skills/angular-ui-patterns/README.md index 91374283..521301c0 100644 --- a/skills/angular-ui-patterns/README.md +++ b/skills/angular-ui-patterns/README.md @@ -32,12 +32,17 @@ The `SKILL.md` file includes: ## Quick Reference -```typescript -// Only show loading without data -if (error()) return -if (loading() && !data()) return -if (!data()?.length) return -return +```html + +@if (error()) { + +} @else if (loading() && !data()) { + +} @else if (!data()?.length) { + +} @else { + +} ``` ## Version diff --git a/skills/angular/SKILL.md b/skills/angular/SKILL.md index f6894a31..b89f8d56 100644 --- a/skills/angular/SKILL.md +++ b/skills/angular/SKILL.md @@ -436,8 +436,6 @@ export class ApiService { --- ---- - ## 7. Component Composition & Reusability ### Content Projection (Slots)