Component Model
One instance's contract with the tree around it: it is created and torn down, parameterized from above, signals upward, takes content and ambient values, and reaches host nodes only by escape hatch.
on this pageshowhide
explore
- Definition, Instance & Lifecycle5 questions
- Inputs & One-Way Flow5 questions
- Outputs & Upward Events6 questions
- Composition, Slots & Reuse5 questions
- Ancestor-Provided Values5 questions
- Host Access & Portals5 questions
questions
page 2 of 2When a template binds a value onto a host element, not a component, how does the framework choose attribute or property?
level: middleimportance: nice to knowfreq 40%
basics
~20 sOne binding syntax covers two targets. On a component it fills a declared input; on a host element the framework chooses between an attribute, which can only hold text, and a property on the live node. Most runtimes decide by recognising the name.
showing 31–31 of 31