-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidenav - provide means to open/close from non-child elements #2591
Comments
@jelbourn do we want to stick with the |
@robwormald I took a look at this, and @EladBezalel ideally people who are just using one sidenav would want to just inject |
- added `open` and `close` functions that applies to both sidenavs in the container and resolves when both are finished fixes angular#2591
- added `open` and `close` functions that applies to both sidenavs in the container and resolves when both are finished fixes angular#2591
- added `open` and `close` functions that applies to both sidenavs in the container and resolves when both are finished fixes angular#2591
- added `open` and `close` functions that applies to both sidenavs in the container and resolves when both are finished fixes angular#2591
- added `open` and `close` functions that applies to both sidenavs in the container and resolves when both are finished fixes #2591
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Given usage like:
Because
my-component
is not a child of themd-sidenav
element, you can't inject MdSidenav into it, which makes programmatically toggling the Sidenav rather difficult (either you end up having to @ViewChild() query for it, and wiring that all up through your own service)What is the expected behavior?
Developers should have an easy way to programmatically control the md-sidenav
What is the current behavior?
See above
Is there anything else we should know?
Material 1 provided a
$sideNav
service, which is the kind of thing i'm describing here: https://material.angularjs.org/latest/api/service/$mdSidenavThe text was updated successfully, but these errors were encountered: