作者:似懂非懂2502904027 | 来源:互联网 | 2023-02-06 04:08
HowdoImarkanAngular2Controlasdirtyinmycode?如何在代码中把角2控制标记为脏?WhenIdoitlikethis:当我
How do I mark an Angular 2 Control as dirty in my code?
如何在代码中把角2控制标记为脏?
When I do it like this:
当我这样做的时候:
control.dirty = true;
I get this error:
我得到这个错误:
Cannot set property dirty of # which has only a getter
3 个解决方案