mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(docs-infra): use separate templates for the from and to selectors in update guide (#55992)
Use separate template names for the from and to selector dropdowns, otherwise we are only able to change the from value. PR Close #55992
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
<span class="adev-template-select">
|
||||
From v.
|
||||
|
||||
<button [cdkMenuTriggerFor]="templatesMenu">
|
||||
<button [cdkMenuTriggerFor]="templatesMenuFrom">
|
||||
<span>{{ from.name }}</span>
|
||||
<docs-icon>expand_more</docs-icon>
|
||||
</button>
|
||||
|
||||
<ng-template #templatesMenu>
|
||||
<ng-template #templatesMenuFrom>
|
||||
<ul class="adev-template-dropdown" cdkMenu>
|
||||
@for (version of versions; track $index) {
|
||||
<li>
|
||||
@@ -31,12 +31,12 @@
|
||||
<span>
|
||||
<span class="adev-template-select">
|
||||
To v.
|
||||
<button [cdkMenuTriggerFor]="templatesMenu">
|
||||
<button [cdkMenuTriggerFor]="templatesMenuTo">
|
||||
<span>{{ to.name }}</span>
|
||||
<docs-icon>expand_more</docs-icon>
|
||||
</button>
|
||||
|
||||
<ng-template #templatesMenu>
|
||||
<ng-template #templatesMenuTo>
|
||||
<ul class="adev-template-dropdown" cdkMenu>
|
||||
@for (version of versions; track $index) {
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user