mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
|
||
|---|---|---|
| .. | ||
| brotli-cli | ||
| build | ||
| cjs-jasmine | ||
| gulp-tasks | ||
| material-ci | ||
| ngcontainer | ||
| npm | ||
| public_api_guard | ||
| rxjs | ||
| size-tracking | ||
| source-map-test | ||
| symbol-extractor | ||
| testing | ||
| ts-api-guardian | ||
| tslint | ||
| validate-commit-message | ||
| yarn | ||
| bazel_stamp_vars.js | ||
| BUILD.bazel | ||
| check-environment.js | ||
| defaults.bzl | ||
| jasmine-seed-generator.js | ||
| jsconfig.json | ||
| postinstall-patches.js | ||
| rebase-pr.js | ||
| rollup_bundle_commonjs_ignoreGlobal.patch | ||
| tsconfig-test.json | ||
| tsconfig.json | ||
| types.d.ts | ||
| utils.inc | ||