Component decorators
Core Component Decorators
@customElement
import { customElement } from 'aurelia-framework';
@customElement('my-widget')
export class SpecialWidget {
// Component logic
}<my-widget></my-widget>@bindable
View and Template Decorators
@useView
@inlineView
@noView
DOM and Rendering Decorators
@containerless
@useShadowDOM
Content and Children Decorators
@child
@children
Content Processing Decorators
@processContent
Practical Examples
Media Player Component
Data Visualization Component
Best Practices
1. Choose the Right Decorator Combination
2. Use @child and @children Appropriately
3. Manage Memory in Custom Decorators
4. Use @processContent Judiciously
Last updated
Was this helpful?