<div class="detail" ng-controller="FormEditController as fec">
  <form ng-submit="fec.onSubmit()" novalidate class="form-horizontal" name="fec.edit" ng-init='fec.init(row);'>
    <formly-form model="fec.model" fields="fec.fields" options="fec.options" form="fec.form" editable-form onaftersave="fec.onSubmit()" root-el="form">
      <div class="form-submit-bouton col-xs-6 col-xs-push-2" ng-if="fec.conditionEditDetail(row)">
        <!-- button to show form -->    
        <button type="button" class="btn btn-default" ng-click="fec.editForm()" ng-show="!fec.form.$visible" ng-bind="'UI.FORM_EDIT' | translate"></button>
        <!-- buttons to submit / cancel form -->
        <span ng-show="fec.form.$visible">
          <button type="submit" class="btn btn-primary" ng-disabled="fec.form.$invalid || fec.form.$waiting" ng-bind="'UI.FORM_SAVE' | translate"></button>
          <button type="button" class="btn btn-default" ng-disabled="fec.form.$waiting" ng-click="fec.cancelForm()" ng-bind="'UI.FORM_CANCEL' | translate"></button>
        </span>
      </div>
    </formly-form>
  </form>
</div>
<div class="detail" ng-controller="FormEditController as fec">
  <form  novalidate class="form-horizontal" name="fec.edit" ng-init='fec.init(row);'>
    <formly-form model="fec.model" fields="fec.fields" options="fec.options" form="fec.form" editable-form onaftersave="fec.onSubmit()" root-el="form">
      <div class="form-submit-bouton col-xs-6 col-xs-push-2" ng-if="fec.conditionEditDetail(row)">
        <!-- button to show form -->    
        <button type="button" class="btn btn-default" ng-click="fec.editForm()" ng-show="!fec.form.$visible" ng-bind="'UI.FORM_EDIT' | translate"></button>
        <!-- buttons to submit / cancel form -->
        <span ng-show="fec.form.$visible">
          <button type="submit" class="btn btn-primary" ng-disabled="fec.form.$invalid || fec.form.$waiting" ng-bind="'UI.FORM_SAVE' | translate"></button>
          <button type="button" class="btn btn-default" ng-disabled="fec.form.$waiting" ng-click="fec.cancelForm()" ng-bind="'UI.FORM_CANCEL' | translate"></button>
        </span>
      </div>
    </formly-form>
  </form>
</div>
Delete ng-submit on form - only formly execute submit after validation
Delete ng-submit on form - only formly execute submit after validation
