angular-deferrable
Installation
SKILL.md
Angular Deferrable Views
Version: Angular 17+ (2025) Tags: @defer, Deferrable, Lazy Loading
References: Deferrable Views
Best Practices
- Use @defer with on viewport
@Component({
template: `
@defer (on viewport) {
<heavy-chart />
} @placeholder {
<div>Loading...</div>
}
`
})
export class DashboardComponent {}
- Use @defer with on interaction
@Component({
template: `
<button (click)="showModal = true">Open</button>
@defer (when showModal) {
<modal-component />
}
`
})
export class MyComponent {}
- Use @defer with on hover
@Component({
template: `
@defer (on hover) {
<tooltip />
}
`
})
export class TooltipWrapper {}
Related skills
More from oguzhan18/angular-ecosystem-skills
angular-tailwind
ALWAYS use when working with Angular and Tailwind CSS, Tailwind configuration, utility-first CSS, or styling Angular applications with Tailwind.
139angular-animations
>-
137rxjs
ALWAYS use when working with RxJS Observables, operators, and reactive patterns in Angular applications.
135angular-material
ALWAYS use when working with Angular Material components, CDK, or Material Design in Angular applications.
131angular-security
ALWAYS use when working with Angular Security, XSS prevention, CSRF protection, Content Security Policy, or sanitization in Angular applications.
130angular-bootstrap
ALWAYS use when working with Angular Bootstrap, ng-bootstrap, Bootstrap components in Angular, or Bootstrap 5 integration.
129