angular-material-sidemenu
angular-material-sidemenu copied to clipboard
How to by default enable one of the md-sidemenu-content?
Hi Marcos, could you please tell us how to enable one of the md-sidemenu-content by default on load
+1
+1 This would be a great addtion
+1
+1
+1
+1
I was looking for the same answer and found this rather hacky way to achieve what I wanted ... Add a hidden DIV
with ng-init="$parent.$mdSidemenuContent.visible = true"
within the content block you want to expand.
<md-sidemenu-content md-heading="Applications" md-arrow="true">
<div ng-init="$parent.$mdSidemenuContent.visible = true" ng-hide></div>
<md-sidemenu-button md-no-ink title="Lodge Enquiry" ui-sref="root.lodge">Lodge Enquiry</md-sidemenu-button>
</md-sidemenu-content>
Obviously would be much nicer to have an attribute we can set on the <md-sidemenu-content />
element.
I created an option for this, After the PR approved, you can use the visible option to enable the initial state of side-menu-content.
Ex.
Hi is this feature already merged?
I think this feature is not working. this will need some update