0

我通过外部函数处理提交事件,(submit)=“my-submit.emit($event) 但我不知道如何在成功或失败时停止加载按钮并在表单内显示错误消息。你能帮帮我吗,谢谢。我的代码如下

in html template
  <formio [form]="formDescription" (submit)="submit.emit($event)" "" [submission]="submission"></formio>
in typescript 
export class FormioViewComponent implements OnInit {

  @Input() formDescription;
  @Input() submission:any;

  @Output() submit :EventEmitter<any> = new EventEmitter();
  constructor() { }

  ngOnInit() {
  }

}
4

0 回答 0