mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The previous behavior of `RouterLink` for `null` and `undefined` inputs was to treat the input the same as `[]` or `''`. This creates several unresolvable issues with correctly disabling the links because `commands = []` does not behave the same as disabling a link. Instead, it navigates to the current page, but will also clear any fragment and/or query params. The new behavior of the `routerLink` input will be to completely disable navigation for `null` and `undefined` inputs. For HTML Anchor elements, this will also mean removing the `href` attribute. Migration for change in #43087 PR Close #43176 |
||
|---|---|---|
| .. | ||
| global | ||
| schematics | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||