skip to content

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 pageshow

explore

questions

page 2 of 2

When 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 s

One 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.

open as a page

showing 31–31 of 31