function getDefaultIndex () {
    return $scope.autoselect ? 0 : -1;
  }
Returns the default index based on whether or not autoselect is enabled.
@returns {number} 0 if autoselect is enabled, -1 if not.