components icon indicating copy to clipboard operation
components copied to clipboard

Sidenav animation and routing

Open MaxKorolkov opened this issue 10 years ago • 4 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

I'm using angular 2 material sidenav component with these settings: <md-sidenav #sidenav mode="side" [opened]="true"> With these settings, menu using animation popup. It's good, but it's a problem when i using route navigation in my app. It's not normal for permanent use. Sidenav should not be animated, when i turn to route component.

What is the current behavior?

Sidenav animate, when i turn to route component.

What are the steps to reproduce?

Maybe remove this behavior or make the property. Best behavior sidenav on this site - https://justindujardin.github.io Sidenav animate on the first vision and toggle, and not animate when using menu buttons.

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

Angular 2.0.0 RC7, Angular2 Material 2.0.0 alpha.8-2, Windows 10, Chrome 53.

MaxKorolkov avatar Sep 26 '16 12:09 MaxKorolkov

<md-sidenav-layout fullscreen> <md-sidenav #sidenav mode="push" > <md-nav-list> <a md-list-item routerLink="notes" (click)='sidenav.close()' > <md-icon md-list-icon>palette</md-icon> <span md-line>Notes</span> </a> <a md-list-item routerLink="reminders" (click)='sidenav.close()' > <md-icon md-list-icon>palette</md-icon> <span md-line>Notes</span> </a> </md-nav-list> </md-sidenav> <md-toolbar > <button md-icon-button (click)='sidenav.toggle()' > <md-icon>menu</md-icon> </button> <b>{{title}}</b>note </md-toolbar> <router-outlet></router-outlet> <md-sidenav-layout>

try this method

AnasSharif avatar Sep 27 '16 18:09 AnasSharif

If this is still an issue can you file a new bug with a plunker to reproduce?

mmalerba avatar Jan 05 '17 21:01 mmalerba

I have the same problem with Angular 4.2.4 and Material 2.0.0-beta.7

miguelangellv avatar Jun 28 '17 14:06 miguelangellv

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.