![](/img/trans.png)
[英]Angular Reactive Form: How to listen to changes in FormControls of a FormArray
[英]How to sort an array of formcontrols in angular Reactive form
您可以根据单选输入值在模板中执行此操作:
<ng-container *ngIf="sorAlphabetically; else defaultSort">
<!--- input A --->
...
<!--- input B --->
...
<!--- input C --->
...
</ng-container>
<ng-template #defaultSort>
<!--- input B --->
...
<!--- input A --->
...
<!--- input C --->
...
</ng-template>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.