するだけでこれを実現できました
index.html
<md-toolbar ng-controller="NavigationController as vm"
ng-include="'app/components/navbar/navbar.html'"
class="md-default-theme" >
</md-toolbar>
<md-content ui-view
md-scroll-y
class="md-default-theme"
role="main"
flex>
</md-content>
navbar.html
<md-tabs md-selected="vm.currentTab" md-stretch-tabs="always" class="main-toolbar">
<md-tab label="Home" ui-sref="home"></md-tab>
<md-tab label="Portfolio" ui-sref="portfolio"></md-tab>
<md-tab label="Contact" ui-sref="contact"></md-tab>
</md-tabs>
app.js
$stateProvider
.state('home', {
url: '/',
data: {
'selectedTab' : 0
},
templateUrl: 'app/components/main/main.html',
controller: 'MainController as vm'
})
.state('portfolio', {
url: '/portfolio',
data: {
'selectedTab' : 1
},
templateUrl: 'app/components/portfolio/portfolio.html',
controller: 'PortfolioController as vm'
})
.state('contact', {
url: '/contact',
data: {
'selectedTab' : 2
},
templateUrl: 'app/components/contact/contact.html',
controller: 'ContactController as vm'
});
ナビゲーション.コントローラー.js
function NavigationController($scope) {
var vm = this;
$scope.$on('$stateChangeSuccess', function(event, toState) {
vm.currentTab = toState.data.selectedTab;
});
}