Component options
@children(selector)
Usage
import { customElement, children } from 'aurelia-framework';
@customElement('parent-element')
export class ParentElement {
@children('child-element')
childElements;
attached() {
console.log(this.childElements.length); // Logs the number of child-element instances
}
}Behavior
Limitations
@child(selector)
Usage
Behavior
Limitations
@useView(path)
Usage
Behavior
Considerations
@noView()
Usage
Behavior
Use Cases
@inlineView(markup, dependencies?)
Usage
Parameters
Behavior
Advanced Usage with Dependencies
@useShadowDOM(options?)
Usage
Options
Behavior
Special Considerations
@containerless()
Usage
Behavior
Limitations
Last updated
Was this helpful?