Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html json对象不影响查看_Html_Angular_Formio - Fatal编程技术网

Html json对象不影响查看

Html json对象不影响查看,html,angular,formio,Html,Angular,Formio,我正在使用angular Formio进行动态屏幕创建,当我从数据库中获取屏幕脚本时,如果我在ngOnInit()中更改特定元素的标签,我可以更改 但是一旦屏幕显示出来,如果我改变标签,它就不起作用了 html <Formio [form]="form" [submission]="submission" (submit)="onSubmit($event)"></formio> <div class="mb-5"> <div class="ro

我正在使用angular Formio进行动态屏幕创建,当我从数据库中获取屏幕脚本时,如果我在
ngOnInit()
中更改特定元素的标签,我可以更改

但是一旦屏幕显示出来,如果我改变标签,它就不起作用了

html

<Formio [form]="form" [submission]="submission" (submit)="onSubmit($event)"></formio>
<div class="mb-5">
    <div class="row">
      <div class="col-12 mb-5">
        <div class="pull-right" style="float:right;">
          <button class="btn save-button" (click)="clearData()">Clear data</button>
          <button class="btn save-button" (click)="showData()">Show data</button>
        </div>
      </div>
    </div>
  </div>

在formio中尝试刷新属性

在yout HTML中:

<Formio [refresh]="triggerRefresh" [form]="form" [submission]="submission" (submit)="onSubmit($event)"></formio>

您似乎与第三方供应商有问题。你看过他们的文件了吗?如果您有一个无法找到解决方案的真正问题,您可能会更幸运地在他们的github上提出问题。您以前尝试过这个吗?this.triggerresh.emit();我用
[refresh]
可以使用它,但是在emit中,我们需要更新表单,比如
表单:this.form
很好,是的,我不太清楚formio
<Formio [refresh]="triggerRefresh" [form]="form" [submission]="submission" (submit)="onSubmit($event)"></formio>
showData() {
    this.form.components[0].label = 'Again Changed';
    this.triggerRefresh.emit({
    form: this.form
});
}