mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Remove an unnecessary TODO comment. The native `<select>` tracks its `value` by keeping track of the selected `<option>`. Thus if the value was set *before* the corresponding option is created, the `<select>` will ignore it, but the framework doesn't know that and will cache the bound value anyways. Therefore, checking if the value changed since it was last bound when the mutation that creates the selected `<option>` occurs would in fact prevent a needed update, leaving the `<select>` and field values out of sync. Furthermore, we know the control type is a native `<select>` element, so we can update its value directly instead of going through `updateNativeControl()` which would perform a redundant input type check. |
||
|---|---|---|
| .. | ||
| animations | ||
| benchpress | ||
| common | ||
| compiler | ||
| compiler-cli | ||
| core | ||
| docs/di | ||
| elements | ||
| examples | ||
| forms | ||
| language-service | ||
| localize | ||
| misc/angular-in-memory-web-api | ||
| platform-browser | ||
| platform-browser-dynamic | ||
| platform-server | ||
| private/testing | ||
| router | ||
| service-worker | ||
| ssr/docs | ||
| upgrade | ||
| zone.js | ||
| BUILD.bazel | ||
| circular-deps-test.conf.js | ||
| empty.ts | ||
| goog.d.ts | ||
| license-banner.txt | ||
| package.json | ||
| README.md | ||
| system.d.ts | ||
| tsconfig-build.json | ||
| tsconfig-legacy-saucelabs.json | ||
| tsconfig-test.json | ||
| tsconfig.json | ||
| tsec-exemption.json | ||
| types.d.ts | ||
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT