Why menu item "Menu1" above the others if i add ui-sref ????
<md-button ui-sref="menu1" >Menu1</md-button>
<md-button>Menu2</md-button>
Why menu item "Menu1" above the others if i add ui-sref ????
<md-button ui-sref="menu1" >Menu1</md-button>
<md-button>Menu2</md-button>
Better yet is to dispense with using two tags and specify 'md-button' as a class on the 'a' tag.
You can of course add any other material class tags too...
If you are using
ui-sref
, then you should enclose it with Anchor tag.As Hooligancat says, here is the updated Code:
Hope it works
It's actually better to wrap the button in the
a
tag. The problem with the recommended solution is that only the text acts as a link rather than the whole button, so I'd suggest;