md-menu async support
Hi,
I want to load md-menu-items asynchronously when the user clicks on a button to open a md-menu.
Everything works fine if I have at least 1 item in my array of menu items before the user opens the menu. See this codepen for an example.
But if the array is empty when the user opens the menu, I get an invisible md-backdrop covering the whole screen which prevents any further user interactions.
Open this codepen and click on the button to reproduce this bug.
Tested with angular-material version 0.11.0
I suppose the menu initial rendering occurs only at first, when there's something to render it behaves as expected..
Here is a updated CodePen Demo using bower-material/master and ng v1.4.6.
Thanks, works great now.
Maybe in a later version you could add support for a loading animation similar to md-select's "Options With Async Search"?