問題タブ [angular-template-form]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angular - angular テンプレート駆動フォーム - ngForm.getControl(dir:NgModel) の ngModel インスタンスを取得する方法
テンプレート駆動フォームがあり、テンプレート駆動フォームによって生成された FormControl にアクセスしたいと考えています。
公式ドキュメントには、NgForm には getControl メソッドがあるが、NgModel ディレクティブ インスタンスが必要であると記載されています。
https://angular.io/api/forms/NgForm#getcontrol
の ngModel インスタンスを取得する方法を教えてもらえますか