after clicking the links in sidenav , the view of the page content changes , but the sidenav remains open
here is my sidenav template
yep, you have to toggle/close it yourself if needed. You can have anything on the sidenav, so its depends on your case if you want to close it or not
so if i understood you right , i will also have to apply a ng-click(with toogle function) along with ui-sref on every link i have on side nav ?
@rishabh1403 afaik, the click event bubbles up the DOM, so you could put just one ng-click="closeSidenav()" on an element that encloses your links.
@outofrange thanks :+1: worked
But if the sidenav has md-is-locked-open="$mdMedia('gt-xs')"- it means sometimes it's always open and you don't want it to "close" ... so how do I know in which device I am ? because on every device the sidenav is either always open or closed
@arLevi there are better avenues for troubleshooting or asking for help. These include Stack Overflow, Gitter, the AngularJS Material forums, etc.
Most helpful comment
@rishabh1403 afaik, the click event bubbles up the DOM, so you could put just one
ng-click="closeSidenav()"on an element that encloses your links.