I am struggling to create a side menu that remains closed by default on all screen sizes and always opens on top of other content. Despite my efforts, it keeps switching at widths over 960px.
This is the current code for my menu:
<md-sidenav is-locked-open="false" class="md-sidenav-right md-whiteframe-z2" component-id="right">
<md-toolbar class="md-theme-dark">
<div class="md-toolbar-tools">
<md-button ng-click="toggleMenu()" class="md-button-colored"><core-icon icon="polymer"></core-icon></md-button>
<span flex></span>
</div>
</md-toolbar>
<md-content class="md-content-padding">
<md-button ng-click="toggleMenu()" class="md-button-colored">Stuff</md-button>
</md-content>
</md-sidenav>
Here's my controller code:
.controller('HomeCtrl', function ($scope, $mdSidenav) {
$scope.toggleMenu = function() { $mdSidenav('right').toggle(); };
})
I found the is-locked-open attribute on the official website, but I can't seem to locate it in their javascript files.