40d785f0a0
Currently we reuse the same instruction both for regular property bindings and property bindings on the `host`. The only difference between the two is that when it's on the host we shouldn't support inputs. We have an optional parameter called `nativeOnly` which is used to differentiate the two, however since `nativeOnly` is preceeded by another optional parameter (`sanitizer`), we have to generate two extra parameters for each host property bindings every time (e.g. `property('someProp', 'someValue', null, true)`). These changes add a new instruction called `hostProperty` which avoids the need for the two parameters by removing `nativeOnly` which is always set and it allows us to omit `sanitizer` when it isn't being used. These changes also remove the `nativeOnly` parameter from the `updateSyntheticHostBinding` instruction, because it's only generated for host elements which means that we can assume that its value will always be `true`. PR Close #31550 |
||
---|---|---|
.. | ||
fake_core | ||
BUILD.bazel | ||
component_indexing_spec.ts | ||
env.ts | ||
incremental_spec.ts | ||
ngtsc_spec.ts | ||
scope_spec.ts | ||
sourcemap_utils.ts | ||
template_mapping_spec.ts | ||
template_typecheck_spec.ts |