<div ng-controller="aggParam.controller">
  <div class="form-group" ng-if="agg.params[aggType]">
    <label>{{aggTitle}}</label>
    <div class="visEditorAgg__subAgg">
      <ng-form name="{{aggType}}Form">
        <vis-editor-agg-params
          agg="agg.params[aggType]"
          index-pattern="agg.getIndexPattern()"
          group-name="'{{aggGroup}}'">
        </vis-editor-agg-params>
      </ng-form>
    </div>
  </div>

</div>
