My code currently works pretty much satisfactory, except for the fact that as soon as I add a ng-href, the standard hyperlink formatting (aka blue links) kicks in. How do I rid myself of this?
Screenshot link: https://i.stack.imgur.com/gsxfH.png
The HTML looks like this (I think the angular controllers and stuff aren't relevant here)
<md-sidenav layout="column" class="md-sidenav-left md-whiteframe-z2" md-component-id="left" md-is-locked-open="$mdMedia('gt-md')">
<md-toolbar class="md-tall md-hue-2">
<span flex></span>
<div layout="column" class="md-toolbar-tools-bottom inset">
<user-avatar></user-avatar>
<span></span>
<div>Name Namesson</div>
<div>name@name.com</div>
</div>
</md-toolbar>
<md-list>
<md-subheader>Navigation</md-subheader>
<md-divider></md-divider>
<md-list-item ng-repeat="item in menu">
<a ng-class="{'active' : isSelected()}" ng-href="{{item.link}}">
<md-item-content md-ink-ripple layout="row" layout-align="start center">
<div class="inset">
<ng-md-icon icon="{{item.icon}}"></ng-md-icon>
</div>
<div class="inset">
{{item.title}}
</div>
</md-item-content>
</a>
</md-list-item>
<md-subheader>Kontoinformation</md-subheader>
<md-divider></md-divider>
<md-list-item ng-repeat="item in admin">
<a ng-class="{'active' : isSelected()}" ng-href="{{item.link}}">
<md-item-content md-ink-ripple layout="row" layout-align="start center">
<div class="inset">
<ng-md-icon icon="{{item.icon}}"></ng-md-icon>
</div>
<div class="inset">
{{item.title}}
</div>
</md-item-content>
</a>
</md-list-item>
</md-list>
</md-sidenav>
Note: If there is a better way to make menus other than using md-list, do let me know. If my way is an OK way to make menus, I'd just like to know the cleanest / most ng-material way to get rid of the hyperlink css.
Thanks in advance!
PS. I know that better support for menus is on the way with angular-material, but I guess that's then and not now. :-)