mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Every `[attr]` in a directive selector is recorded as an alias, including
the ones inside `:not(...)`, and the last directive in the manifest won
the alias. `ngModel`, `formControl` and `formControlName` linked to
`SelectMultipleControlValueAccessor`, `routerLink` to the deprecated
`RouterLinkWithHref` and `formGroup` to `NgForm`. An alias could also
delete a real entry of the same name, so `email()` never linked.
Collect the claimants of each alias instead. When several directives
claim one, link the one named after it, otherwise leave the alias
unlinked. An alias no longer replaces a real entry. `email` joins the
names that are not linked on their own, so it does not link in code
samples.
(cherry picked from commit 0dafb36834)