Skip to content

routerLinkActive is not working on md-list-item inside md-nav-list #3884

@afriedma

Description

@afriedma

Bug, feature request, or proposal:

bug, routerLinkActive is not working on md-list-item inside md-nav-list

What is the expected behavior?

on active route change, call a function to set active item in the list

What is the current behavior?

no public methods are available, setting [routerLinkActive]="['mat-list-item-focus']" doesn't produce the expected result

What are the steps to reproduce?

https://plnkr.co/edit/s8UuFvLXTqGxGSxK3zXV?p=preview

What is the use-case or motivation for changing an existing behavior?

redirection to the page and pre-selecting/highlighting an item for the user

Which versions of Angular, Material, OS, browsers are affected?

Angular 2.4.2/material 2.0.0-beta.2/Windows/electron 1.4.3

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    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