angular-deferrable

ALWAYS use when working with Angular Deferrable Views, @defer, lazy loading components, or deferred loading in Angular.

oguzhan18/angular-ecosystem-skills176 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI

Agent Skills format with YAML frontmatter. Claude Code reads it as-is.

---
name: "angular-deferrable"
description: "ALWAYS use when working with Angular Deferrable Views, @defer, lazy loading components, or deferred loading in Angular."
license: "MIT"
---

# Angular Deferrable Views

**Version:** Angular 17+ (2025)
**Tags:** @defer, Deferrable, Lazy Loading

**References:** [Deferrable Views](https://angular.dev/guide/defer)

## Best Practices

- Use @defer with on viewport

```ts
@Component({
  template: `
    @defer (on viewport) {
      <heavy-chart />
    } @placeholder {
      <div>Loading...</div>
    }
  `
})
export class DashboardComponent {}
```

- Use @defer with on interaction

```ts
@Component({
  template: `
    <button (click)="showModal = true">Open</button>
    @defer (when showModal) {
      <modal-component />
    }
  `
})
export class MyComponent {}
```

- Use @defer with on hover

```ts
@Component({
  template: `
    @defer (on hover) {
      <tooltip />
    }
  `
})
export class TooltipWrapper {}
```

More Frontend Frameworks skills

← All Frontend Frameworks skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY