I want to use the tabs provided from Angular Material in order to have two different options for my application. The tabs are located in the navbar of my application. However the tab switching should just trigger a click-event as the main content of both tabs is the same (below the navbar).
So now, I tried using the md-tabs without any content just with a ng-click, but that does not seem to work.
Oc I could use sime buttons in my navbar, but I want to have the annimation and the red line of the material tabs, which seems not possible with the buttons.
Anyone knows how to solve my problem?
Code right now:
<md-content flex="" layout-padding="" class="md-small">
<md-toolbar>
<div class="md-toolbar-tools">
<h2>
<span ng-click="moveTo(53.534980, 9.975195)">Some Header</span>
</h2>
<span flex="5"></span>
<md-tabs class="md-accent" md-selected="data.selectedIndex" md-align-tabs="top">
<md-tab id="tab1">
<md-tab-label>Item One</md-tab-label>
<md-tab-body>
</md-tab-body>
</md-tab>
<md-tab id="tab3">
<md-tab-label>Item Three</md-tab-label>
<md-tab-body>
</md-tab-body>
</md-tab>
</md-tabs>
<span flex=""></span>
<md-button class="md-icon-button md-primary" aria-label="Settings" ng-click="toggleRight()">
<md-icon md-svg-icon="images/menu.svg"></md-icon>
</md-button>
</div>
</md-toolbar>
<span flex></span>
</md-content>