code: function updateHasContent () {
      var hasContent = false;
      var i;
  
      for (i = 0; i < ctrl.tabs.length; i++) {
        if (ctrl.tabs[i].hasContent) {
          hasContent = true;
          break;
        }
      }
  
      ctrl.hasContent = hasContent;
    }
docs: Determines if the tab content area is needed.