テンプレート駆動フォームがあり、テンプレート駆動フォームによって生成された FormControl にアクセスしたいと考えています。
公式ドキュメントには、NgForm には getControl メソッドがあるが、NgModel ディレクティブ インスタンスが必要であると記載されています。
https://angular.io/api/forms/NgForm#getcontrol
の ngModel インスタンスを取得する方法を教えてもらえますか
<clr-input-container>
<label class="input-label required">{{ 'ORDER.AMOUNT' | translate }}</label>
<input type="number" min="0" class="input-field" clrInput [(ngModel)]="order.quantity" name="quantity" required />
</clr-input-container>