src/components/tabs/js/tabsController.js
function setAriaControls (tab) {
    if (tab.hasContent) {
      var nodes = $element[0].querySelectorAll('[md-tab-id="' + tab.id + '"]');
      angular.element(nodes).attr('aria-controls', ctrl.tabContentPrefix + tab.id);
    }
  }
function setAriaControls (tab) {
    if (tab.hasContent) {
      var nodes = $element[0].querySelectorAll('[md-tab-id="' + tab.id + '"]');
      angular.element(nodes).attr('aria-controls', ctrl.tabContentPrefix + tab.id);
    }
  }
function setAriaControls ( tab ) { if ( tab . hasContent ) { var nodes = $element [ 0 ] . querySelectorAll ( '[md-tab-id="' + tab . id + '"]' ) ; angular . element ( nodes ) . attr ( 'aria-controls' , ctrl . tabContentPrefix + tab . id ) ; } }
Sets the `aria-controls` attribute to the elements that correspond to the passed-in tab.
@param tab
Sets the aria - controls attribute to the elements that correspond to the passed - in tab .