如何将cronExpression值绑定到formControl?

时间:2018-12-08 19:33:50

标签: angular

我使用此cron库https://github.com/claudiuconstantin/cron-editor

<cron-editor [(cron)]="cronExpression" [disabled]="isCronDisabled" [(options)]="cronOptions"></cron-editor>
<hr /> 
<p>The resulting Cron expression: <strong>{{cronExpression}}</strong></p> 

我需要将结果表达式绑定到表单控件

testControl: new FormControl('')

我尝试过

testControl: new FormControl(this.cronExpression) 

但是它是空的

0 个答案:

没有答案