Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

mdSidenav service breaks when sidenav is placed inside an ng-view #540

Closed
ivan7237d opened this issue Nov 4, 2014 · 1 comment
Closed

Comments

@ivan7237d
Copy link

In my app the right sidenav is only required for one of several views, so is placed inside that view. Initially mdSidenav('right') works correctly, but stops working if one switches to another view and then returns to the one with the sidenav.

From looking at source, it seems like the issue occurs because when destroyed, a sidenav does not deregister itself from $mdComponentRegistry, so after a new sidenav is created, $mdComponentRegistry.get keeps returning the old instance.

@pandaiolo
Copy link
Contributor

Duplicate of #473, fixed by #531 (not merged yet)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants