/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.19 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.navBar */ MdNavBar['$inject'] = ["$mdAria", "$mdTheming"]; MdNavBarController['$inject'] = ["$element", "$scope", "$timeout", "$mdConstant"]; MdNavItem['$inject'] = ["$mdAria", "$$rAF", "$mdUtil", "$window"]; MdNavItemController['$inject'] = ["$element"]; angular.module('material.components.navBar', ['material.core']) .controller('MdNavBarController', MdNavBarController) .directive('mdNavBar', MdNavBar) .controller('MdNavItemController', MdNavItemController) .directive('mdNavItem', MdNavItem); /** * @ngdoc directive * @name mdNavBar * @module material.components.navBar * * @restrict E * * @description * The `` directive renders a list of material tabs that can be used * for top-level page navigation. Unlike ``, it has no concept of a tab * body and no bar pagination. * * Because it deals with page navigation, certain routing concepts are built-in. * Route changes via `ng-href`, `ui-sref`, or `ng-click` events are supported. * Alternatively, the user could simply watch the value of `md-selected-nav-item` * (`currentNavItem` in the below example) for changes. * * Accessibility functionality is implemented as a * * tablist with * tabs. * We've kept the `role="navigation"` on the `