Skip to content

routerLink is not working for mat-button-toggle in 6.3.1 #11944

Closed
@zijianhuang

Description

@zijianhuang

Bug

            <mat-button-toggle-group #group="matButtonToggleGroup" [value]="currentModuleName">
                <mat-button-toggle routerLink="/ml_appointments" value="appointments">
                    <i fxHide.md class="material-icons">event</i>
                    <span fxHide.sm fxHide.xs>Appointments</span>
                </mat-button-toggle>
                <mat-button-toggle routerLink="/tasks" value="tasks">
                    <i fxHide.md class="material-icons">donut_large</i>
                    <span fxHide.sm fxHide.xs>Tasks</span>
                </mat-button-toggle>

No routing happens when the toggle button is clicked.

What is the expected behavior?

Routing should happen according to the definitions in the routing module. The same code is working well in 6.3.0 and all previous releases.

What is the current behavior?

No routing happens.

Is there anything else we should know?

While I could do the routing in the TS codes, however for this scenario I would prefer to have the routing declared in the HTML template.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions